Logic Blocks

Logic Blocks

true

This block represents the constant value true. Use it for setting boolean property values of components, or as the value of a variable that represents a condition.

false

This block represents the constant value false. Use it for setting boolean property values of components, or as the value of a variable that represents a condition.

not

This block performs logical negation, returning false if the input is true, and true if the input is false.

=

This block tests whether its arguments are equal.

and

This block tests whether all of a set of logical conditions are true. The result is true if and only if all the tested conditions are true. When you plug a condition into the test socket, another socket appears so you can add another condition. The conditions are tested left to right, and the testing stops as soon as one of the conditions is false. If there are no conditions to test, then the result if true. You can consider this to be a logician's joke.

or

This block tests whether any of a set of logical conditions are true. The result is true if one or more of the tested conditions are true. When you plug a condition into the test socket, another socket appears so you can add another condition. The conditions are tested left to right, and the testing stops as soon as one of the conditions is true. If there are no conditions to test, then the result is false.