Logical Operator

Text Language Definition

Not Applicable

Description

The Logical Operator block performs a logic operation on the two boolean expression parameters. The logical operator is chosen from the drop down list in the center of the block and can be any of the following:

         and - and result is true only if both parameters are true
or - or result is true if either or both of the parameters is true
xor - exclusive or result is true if one, and only one, of the two parameters is true

Expressions can be nested for logical operations for more than just two parameters. The precedence performs inner expressions first and outer expressions last as if the diamond expressions had parenthesis on both ends.

Escapes

The Logical Operator block does not produce any escapes.

Examples

This block list confirms a number is in a percentage range:

This On Event block produces a part if either front or back start button is pushed

Related Topics

If
If Else
While
Repeat Until