Using the If-Then-Else Statement Combination
The if-then-else statement combination is the simplest form of flow-control statement, letting you choose between alternative paths of execution. The if statement applies to logical (Boolean) expressions, which can include comparison operators and logical operators (AND, OR, and NOT). The example below shows how to control the flow of frames within an application on the basis of the status field on the current form:
if status = 'n' then
callframe new;
elseif status = 'c' then
callframe completed;
else
callframe inprogress;
endif;
Last modified date: 08/14/2024