[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
NAME: OR
FUNCTION: Logical OR of Boolean values
OPERAND TYPE: Boolean
RESULT TYPE: Boolean
Note: The evaluation of Logical operators is dependent on the
status of the {B+-} compiler directive.
When active ( {B+} ) all values are evaluated.
For instance the statement : if ((a = b) and (c=d)) then statement;
will check the validity of (a=b) and then check (c=d) before
evaluating the statement of ((a=b) or (c=d)) to be true or false;
However, if inactive ( {B-} ) then shortcircuit evaluation is used.
In the above example, if (a=b) is found to be false then the entire
expression ((a=b) or (c=d)) is evaluated as false and (c=d) is never
tested. This can prevent range-check errors;
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson