Use the parentheses in complex expressions to indicate how you want CA Top Secret to evaluate the clause. Parentheses group the left and right‑hand sides of an expression and they express which part of a complex expression is the left‑hand side and which side is the right‑hand side.
Consider the following:
IF CODE = "3A"
This example finds a true condition when CODE equals 3A, or CODE equals 3B and SALARY is less than $25,000:
SELDATA=('IF ((CODE = "3A") OR ((CODE = "3B") AND (SALARY LT 25000)))')
This example evaluates as true when CODE equals 3A and SALARY is less than $25,000 or when CODE equals 3B and SALARY is less than $25,000:
SELDATA=('IF (((CODE = "3A") OR (CODE = "3B") AND (SALARY LT 25000)))')
You must specify parentheses when you use NOT in an expression.
|
Copyright © 2009 CA.
All rights reserved.
|
|