Algorithm.||

Returns the logical "or" of two conditions. If the first condition is TRUE, the second condition will not be evaluated.

Arguments

condition0
is the first condition for logical "or".
The
callable
provides the second condition for logical "or", and is only evaluated if
condition0
is FALSE. The stack notation is:

( -- condition )

Return values

condition1
is TRUE if any of
condition0
and
callable
evaluation result is TRUE, FALSE otherwise.

Complexity

Constant

Example

"sl/algorithm" useFile x: 0; y: 4; x 0 = [y x / 1 > ] || # with a simple "or" the program would end with an error
Output:
TRUE