IF condition THEN expression1 ELSE expression2A constant, field name, variable name, or expression. If the condition is TRUE, then the function returns this value.A constant, field name, variable name, or expression whose value is of a data type that is compatible with the data type of expression1. If the condition is FALSE or the Unknown value (?), then the function returns this value.
FOR EACH Customer NO-LOCK BY IF Customer.Balance > 10000 THEN 1ELSE (IF Customer.Balance > 1000 THEN 2 ELSE 3) BY Customer.SalesRep:
DISPLAY Customer.SalesRep Customer.Balance Customer.Name.END.
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates. |