Skip to content

OR Expression

OR performs a logical OR on two integer-parsed operands.

Syntax

OR{left;right}

The production implementation parses both operands with std::stoi, casts them to bool, and returns 1 or 0. Integer 0 is false; a non-zero integer is true.

Evaluation behavior

OR is a normal leaf expression, not lazy control flow. Nested expressions in both operands are resolved before OR itself is evaluated. Do not rely on OR for short-circuiting a side-effecting expression such as CMD{...}; use lazy IF or SWITCH routing when execution must depend on a branch.

Examples

These forms are already exercised by ACE's expression tests:

OR{1;0}   -> 1
OR{1;1}   -> 1
OR{0;0}   -> 0

Nested expressions may supply either operand. Use expressions that resolve to integer values, normally 0 or 1, for boolean logic.