| System Functions |
|
| Format | CSE(expression[$],compare1[$],compare2[$]
[,ERR=stmtref]) Where:
|
|||||||||
| Returns | Integer representing the sequence number of a match, or 0 zero if no match. | |||||||||
| Description | The
CSE( ) function is used to compare an expression
with a series of values. If the expression has a match, the resulting number will point to the location of the matched value in the series; i.e., if expression matches the 5th value in the compare series, then CSE( ) returns 5. If no match is found, CSE( ) returns 0. |
|||||||||
| Examples |
In the example above, if the value of CTL is 1000 then the CSE( ) function returns 3; if the value of CTL is 1030, then 5 is returned; etc. The example below shows strings in the comparison.
|
|||||||||
| See Also | TBL( ) Convert String Via
Table SWITCH Directive CASE Directive |
|||||||||