Category:Logic

Gets the result of an expression that compares two values.

This block determines if the comparison of two values is true. For example, the comparison expression 3 < 4 is true, while the expression 3 > 4 is false. This block should only be used in other logic blocks.

Parameters

Name Description
value1 Variable, number, color, text, or logic block to be compared with value 2
operator Allows the two values to be compared. = ≠ < ≤ >≥
value 2 Variable, number, color, text, or logic block to be compared with value 1

Found a bug in the documentation? Let us know at documentation@code.org