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 | Assigns a constant value (True or False) or a user-defined
value to a Boolean value.
|
Compare to | Compares two Boolean values and assigns the output to a
numeric variable.
|
Equal to | Verifies whether the two Boolean values are equal or not, and
assigns the output to a Boolean variable.
|
Invert | Converts a Boolean value to the opposite value (True to False
and False to True), and assigns the output to a variable.
|
To number | Converts a Boolean value to a numeric value. This action
converts True to 1 and False to 0.
|
To string | Converts a Boolean value to a string value.
|
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 |