Condition operators and operand types
A condition on a Decision node is made of one or more rules. Each rule compares a left operand with a right operand using an operator. This topic describes the parts of a rule. For how to build one, see Add a decision.
Parts of a rule
- Left operand
-
The value on the left of the comparison.
- Operator
-
The comparison to make, such as is equal to.
- Right operand
-
The value on the right of the comparison.
Operand types
An operand holds a value of one of three types:
-
String, which is text.
-
Number.
-
Boolean, which is true or false.
The operator you select sets the type the rule expects. For example, selecting is equal to from the Boolean group makes both operands boolean. If you enter a value before selecting an operator, the operand defaults to a string.
Variable and static operands
An operand holds either a variable or a static value:
- Variable
-
A value read from the process flow’s data. Add a variable by dragging an input from the Inputs panel onto the operand. The operand shows the property name, and its full path appears when you hover over it. See Binding syntax reference.
- Static value
-
A fixed value you enter. Start typing in the operand to set it. A string and a number use a text field. A boolean uses a selection.
Combining rules
A condition can hold more than one rule. Rules are joined by a logical operator that appears between them, which you set to AND or OR:
-
AND requires both rules to be true.
-
OR requires at least one rule to be true.
For example, to triage a candidate with a year or less of experience:
-
unemployedis false AND -
yearsOfExperienceis lower or equal to1.