Logical operators

Logical operators perform an operation between Boolean values and return a Boolean value (True or False) as a result of the operation. The following screenshot shows the main logical operators in Blueprints:

These are the descriptions of these operators:

  • OR: Returns a value of True if any of the input values are True
  • AND: Returns a value of True only if all input values are True
  • NOT: Receives only one input value, and the result will be the opposite value

The following screenshot shows an example of using the AND operator. The Print String node will only be executed if the Health value is greater than 70.0 and Shield Value is greater than 50.0:

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset