or_else (boolean)

Description

As an extension to Standard Pascal, Irie Pascal supports the or_else operator, which takes two operands of boolean type and performs boolean OR. The result of the operation is of boolean type, and is equal to true if either operand is true, and false if both operands are false. Short-circuit evaluation is always used by the or_else operator (i.e. The left operand is evaluated first and if it is true then the right operand is not evaluated because the result of the operation must be true).

Example

   false or_else false   results in false
   false or_else true    results in true
   true  or_else false   results in true
   true  or_else true    results in true

The differences between the or_else operator and the or operator are: