Order of Evaluation
When CA IDMS/DB encounters a boolean expression, it evaluates all operators in the entire boolean expression. Operators are evaluated one at a time, beginning with the operator of the highest precedence. Operators in arithmetic expressions are assigned the highest precedence, followed by comparison operators and boolean operators, respectively. The default order of precedence is shown following:
Operations of equal precedence are evaluated left to right.
Use Parentheses to Override Default Precedence of Operators
You can use parentheses to override the default precedence of operators and to clarify multiple-comparison boolean expressions. The expression in the innermost parentheses is evaluated first. The keyword NOT can precede a parenthetical expression to negate the result.
|
Copyright © 2014 CA.
All rights reserved.
|
|