[ < ] | [ > ] |  | [ << ] | [ Up ] | [ >> ] |  |  |  |  | [Top] | [Contents] | [Index] | [ ? ]

## 9.182 or else

### Synopsis

    { `or else' is built in. A user-defined operator cannot consist of
       two words. }
    operator or else (operand1, operand2: Boolean) = Result: Boolean;

### Description

``or else'` is an alias for the short-circuit logical operator ``or_else'`.

### Conforming to

While ``or_else'` is defined in ISO-10206 Extended Pascal, ``or else'` is a GNU Extension.

### Example

    program OrElseDemo;
    var
      a: Integer;
    begin
      ReadLn (a);
      if (a = 0) or else (100 div a > 42) then  { This is safe. }
        WriteLn ('100 div a > 42')
    end.

### See also

section 9.183 or_else, section 9.180 or, section 9.8 and then.

This document was generated by Frank Heckenbach on May, 10 2002 using texi2html