A conditional expression specifies test conditions in an IF or WHILE command. The outcome of a conditional test determines the processing that occurs.
A conditional expression can be used as a variable wherever the command syntax specifies conditional-expression.
The table below summarizes the test conditions that can be used in conditional expressions. Each condition is described separately in this section.
Summary of Test Conditions
|
Condition |
Purpose |
|---|---|
|
Batch control event |
Determines the occurrence of runtime events (batch input only) |
|
Command status |
Tests for the presence of a status code in a dialog's error-status field |
|
Comparison |
Compares two values |
|
Cursor position |
Determines if the cursor is located in a specified field after a mapin operation |
|
Dialog execution status |
Determines if a dialog is executing for the first time |
|
Environment status |
Determines the environment in which the application is executed |
|
Level-88 condition name |
Determines if a variable data field value is equal to the value of the associated level-88 condition name |
|
Map field status |
Determines if a map's data field are changed or in error |
|
Map paging status |
Determines the runtime events of a map paging session |
|
Set status |
Determines member record occurrences or if a record is a member of a specific set |
|
Assignment condition |
Tests for an arithmetic or assignment exception |
|
Copyright © 2014 CA.
All rights reserved.
|
|