10.07.2015 Views

Programming Guide - Actian

Programming Guide - Actian

Programming Guide - Actian

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

ExpressionsThe order of precedence for these operators, from highest to lowest, is asfollows:NOTANDORYou can use parentheses to change this order. In the following example:if (empnum > 0 or deptno > 0) and status != 3OpenROAD first evaluates empnum and deptno and then evaluates status.The following example illustrates the use of comparison and logical operators:if empnum > 0 and status != 3 thencallframe newemployee;endif;Comparison (Boolean) OperatorsThe newemployee frame is called only if both conditions are TRUE, that is, ifthe current value of empnum is greater than 0, and status has any value otherthan 3.Boolean expressions yield the boolean values TRUE, FALSE, or (with nullableexpressions) null. 4GL includes the logical operators AND, OR, and NOT, andthe following comparison operators:OperatorOperator= Equal to!=^=Not equal to< Less than Greater than>= Greater than or equal tois nullis not nullValue is nullValue is other than nullLanguage Elements 43

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!