Progress
Report Builder
User’s Guide


Order of Expression Evaluation

Report Builder evaluates expressions using the following rules:

The < and > operators are in the next level of precedence, so Report Builder performs them second; the logical OR is in the lowest level of precedence and, therefore, performed last. Report Builder evaluates the expression 12 < 8 OR 4 > 5as if it were ((12 < 8) OR (4 > 5)).

For example, Report Builder evaluates the following expression as false, because the * and + operations are performed first:

3 * 4 < 8 OR 4 > 3 + 2 

In the following expression, Report Builder evaluates the > operators first. Both conditions must be true for the expression to be true. The balance must be greater than 100 and the number of days must be greater than 30:

Balance > 100 AND DAYS > 30 

In the following expression, Report Builder adds TODAY+30 first and then compares the result to the date returned by the DATE( ) function. Therefore, the expression is true only when TODAY+30 results in a date that is later than 7/1/93:

DATE ("7/1/93") < TODAY + 30 


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095