Tamper: Math¶
Plugin ID: eca_tamper:math
Available since: 1.0.0
Performs basic mathematical calculations on the imported value.
Fields¶
Data to be tampered— config key:eca_data-
This field supports tokens.Type:
textfield· Required: yes · Default: empty string Result token name— config key:eca_token_name-
Provide a token name under which the tampered result will be made available for subsequent actions.
This field supports tokens.Type:
textfield· Required: yes · Default: empty string 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.
This field supports tokens.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