Progress
Language Tutorial
for Windows
Using the IF Statement
The IF statement allows you to test for a condition and then execute code if the expression is TRUE. The ELSE option allows you to specify a second block of code to execute if the expression is FALSE. This is the syntax.
The code for either the THEN or ELSE branch can be either a statement or a block, as this example shows:
The block at point 1 executes when the expression is TRUE, while the block at point 2 executes when the expression is FALSE.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |