Decision
Decision
Evaluates a condition and splits the robot's flow in two: one path when the condition is true, another when it is false.
Options
If
The value, or another action's output, that forms the left side of the comparison. It takes text, a number, a boolean, code or an action's output.
Was
The comparison operator applied between the two values:
- Equals — true when the two values are exactly the same.
- Different — true when they are not the same.
- Contains — true when value A contains value B as a substring.
- Bigger — true when value A is numerically greater than B.
- Bigger or equal — true when value A is greater than or equal to B.
- Less — true when value A is numerically smaller than B.
- Less or equal — true when value A is smaller than or equal to B.
To
The value, or another action's output, that forms the right side of the comparison. It takes text, a number, a boolean, code or an action's output.
Returns
Decision produces no data. It branches the flow: the actions inside the True block run when the condition holds; the actions inside the False block run when it does not.
Rules and conditions
- If and To are both required.
- Was (the operator) has to be selected before you can save.
- Bigger, Bigger or equal, Less and Less or equal treat the values as numbers. Non-numeric values can give an unexpected result.
- Contains compares text case-sensitively.
- Both flow blocks (True and False) are optional — either can be left empty.