Node: or else, Next: or_else, Previous: Ord, Up: Reference

### 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 Pascal 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

Keywords, or_else, or, and then.