| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
{ `or else' is built in. A user-defined operator cannot consist of
two words. }
operator or else (operand1, operand2: Boolean) = Result: Boolean;
|
`or else' is an alias for the short-circuit logical operator `or_else'.
While `or_else' is defined in ISO-10206 Extended Pascal, `or else' is a GNU Extension.
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.
|
section 9.183 or_else, section 9.180 or, section 9.8 and then.