Tamper: Math¶
Plugin ID: eca_tamper_condition:math
Available since: 1.0.0
Performs basic mathematical calculations on the imported value.
Fields¶
Comparison operator— config key:operator-
The available comparison operators like equals or less than.
When using the "Defined by token" option, make sure there is a token with this name: eca_tamper_condition:math_operatorType:
select· Required: no · Default:equalAllowed values:
equal,beginswith,endswith,contains,greaterthan,lessthan,atmost,atleast,_eca_token,'' Comparison type— config key:type-
The type of the comparison.
When using the "Defined by token" option, make sure there is a token with this name: eca_tamper_condition:math_typeType:
select· Required: no · Default:valueAllowed values:
value,natural,numeric,lexical,count,_eca_token,'' Case sensitive comparison— config key:case-
Compare the values based on case sensitivity.
Type:
checkbox· Required: no · Default:false Negate the condition— config key:negate-
Negates the condition. Makes TRUE to FALSE and vice versa.
Type:
checkbox· Required: no · Default:false Operation— config key:operation-
The operation to apply to the imported value.
Type:
select· Required: yes · Default: empty stringAllowed values:
addition,subtraction,multiplication,division Flip— config key:flip-
Normally, the feed item will be processed like input-value / setting-value. This option switches the order so that it is setting-value / input-value.
Type:
checkbox· Required: no · Default:false Value— config key:value-
A numerical value.
Type:
number· Required: yes · Default: empty string Skip calculation when the data is not numeric— config key:skip_on_nan-
If checked, the data is returned as is when it is not numeric. If not checked, empty data will be treated as zero.
Type:
checkbox· Required: no · Default:false Data to be tampered— config key:left-
Type:
textarea· Required: yes · Default: empty string Data to compare with— config key:right-
Type:
textarea· Required: yes · Default: empty string