Handbook · Reference · Blockly · Logic

Blockly: Logic

Where in the UI. Scripts tab toolbox.

Stock Blockly: if, compare, and/or, booleans, ternary.

Block idRead asPurpose
controls_ififIf / else control flow.
logic_comparecompareCompare two values (=, ≠, <, >, ≤, ≥).
logic_operationoperationAnd / or of two booleans.
logic_booleanbooleanTrue or false literal.
logic_negatenegateBoolean not.
logic_nullnullNull literal.
logic_ternaryternaryInline if: test ? then : else.