Read and Review Automation Anywhere Documentation

Automation 360

Close Contents

Contents

Open Contents

Boolean package

  • Updated: 1/16/2020
    • Automation 360 v.x
    • Build
    • RPA Workspace

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.
  • Select the source Boolean variable or value.
  • Select the variable to use to store the output from the Destination Boolean variable list.

    The output is stored in a Boolean variable.

Compare to Compares two Boolean values and assigns the output to a numeric variable.
  • Select the Boolean variables to compare from the Select the first Boolean variable and Select the second Boolean variable lists.
  • Select the variable to use to store the output from the Assign the output to number variable list.

    The output is stored in a number variable.

Equal to Verifies whether the two Boolean values are equal or not, and assigns the output to a Boolean variable.
  • Select the variables that contain the Boolean values to verify from the Select the first Boolean variable and Select the second Boolean variable lists.
  • Select the variable to use to store the output from the Assign the output to number variable list.

    The output is stored in a number variable.

Invert Converts a Boolean value to the opposite value (True to False and False to True), and assigns the output to a variable.
  • Select the Boolean value to convert. Choose from False, True, or a Variable.
  • Select the numeric variable to use to store the converted value from the Assign the output to variable list.
To number Converts a Boolean value to a numeric value. This action converts True to 1 and False to 0.
  • Select the Boolean variable to convert from the Select Boolean variable list.
  • Select the numeric variable to use to store the converted value from the Assign the output to variable list.
To string Converts a Boolean value to a string value.
  • Select the Boolean variable to convert from the Select Boolean variable list.
  • Select the string variable to use to store the converted value from the Select the string variable to store the result list.

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
Send Feedback