Boolean package
- Updated: 2023/05/24
Boolean package
The Boolean package contains actions that enable you to do various operations on boolean values.
Actions in the Boolean package
The actions in the Boolean package accept a variable as an input and assign the output to a variable. These actions enable you to compare two boolean values, convert a boolean value to a string or numeric value, and convert a string value to a boolean value.
The Boolean package includes the following actions:
| Action | Description |
|---|---|
| Assign | See Assign action in Boolean |
| Compare to | See Compare to action in Boolean |
| Equal to | See Equal to action in Boolean |
| Invert | See Invert action in Boolean |
| To number | See To number action in Boolean |
| To string | See To string action in Boolean |
Compare results for the Compare to action
The following table illustrates how two boolean values are compared using the Compare to action and their output:| Boolean value 1 | Boolean value 2 | Compare result |
| True | True | 0 |
| True | False | 1 |
| False | True | -1 |
| False | False | 0 |
Compare results for the Equal to action
The following table illustrates how two boolean values are compared using the Equal to action and their output:| Boolean value 1 | Boolean value 2 | Equal result |
| True | True | True |
| True | False | False |
| False | True | False |
| False | False | True |