IF...THEN...ELSE function
Evaluates and returns one of two expressions, depending on the value of a specified condition.
Syntax
condition
expression1
expression2
ExampleYou can use the IF . . . THEN . . . ELSE function when you want to sort records in an unusual order. In this example, the Customers are sorted so that those with a Balance greater than $10,000 appear first, then those with Balances between $1,000 and $10,000, and finally those with Balance of $1,000 or less:
OpenEdge Release 10.2B
|