Source and Path
Use the Source dropdown to select where to look for the value to use in the conditions check.
Set a Path if the value is not the data itself. It supports dot notation: position.longitude or sensor.0.value for arrays, it does not support sensor[0].value.
Expression supports javascript syntax. Should return a value which will be used in condition check as data. Available variables: data, session, variables
Expressions example:
data.value - variables.offset
Conditions
Each of the Conditions corresponds to an output in the exact same order. First condition -> First output.
Operator
Not all operators work on all data types. For example it is not possible to use > or < for strings, etc.
index of only works for data of type array or string.
Expression operator
In this case the type field is ignored and the expression in the value field must return true or false. Available variables: data, session, variables.
Expressions operator example:
data.value > variables.threshold;
or with a conditions
if (typeof data.value !== 'number') return false; else return data.value > parseInt(variables.threshold);
Expression type
The expression in the value field must return a value which will be used in the given operation. Available variables: data, session, variables.
Expressions example:
data.value - variables.offset
Between operator only works with datatype number and the value must be two comma separated values. e.g.: 2,4 so the condition becomes val > 2 && val < 4