Compare Numbers Nodes
Compare Numbers nodes are used to compare two numerical values during dialogue playback, resulting in a boolean output value.
When reached via dialogue flow, the dialogue flow will continue based on the evaluated boolean value of the operation. If the value is true, dialogue flow will continue down the TRUE dialogue flow output path; otherwise, the dialogue flow will continue down the FALSE dialogue flow output path.
The boolean (true/false) value of these operations can optionally be sent on to another node by using the boolean output.
The comparison types available are:
- LESS_THAN - Evaluates to TRUE whenever the first (top) value is less than the second (bottom) value, FALSE otherwise.
- GREATER_THAN - Evaluates to TRUE whenever the first (top) value is greater than the second (bottom) value, FALSE otherwise.
- EQUAL_TO - Evaluates to TRUE whenever the values are equal, FALSE otherwise
- LESS_THAN_OR_EQUAL - Evaluates to TRUE whenever the first (top) value is less than or equal to the second (bottom) value, FALSE otherwise.
- GREATER_THAN_OR_EQUAL - Evaluates to TRUE whenever the first (top) value is greater than or equal to the second (bottom) value, FALSE otherwise.
- NOT_EQUAL - Evaluates to TRUE whenever the values are not equal, FALSE otherwise.
You can type the values to compare into the numerical fields, or determine their values during playback by passing in a value from another node.
Each compare numbers node has one dialogue flow input, a numerical value input for each variable needed for the comparison, a boolean value output for the result of the comparison, a TRUE dialogue flow output (for when the result is true), and a FALSE dialogue flow output (for when the result is false).