Coding the LOCTEXT operand
The LOCTEXT operand specifies the actual data to be compared. The LOCTEXT operand causes the IF statement to always be evaluated when the conditions specified on the TYPE, WHEN, and SNASCOPE operands are met. See WSim Script Guide and Reference for details about the LOCTEXT operand.
The following options are valid for the LOCTEXT operand:
- cntr
- Specifies a counter whose value is to be used in the comparison. cntr is the name of a valid counter. See Coding the LOC operand for a list of valid counters. WSim compares the counter or integer specified on the TEXT operand against cntr.
- (data)
- Specifies the data to be used in the comparison. You can also code data field options within the text delimiters.
- integer
- Specifies a 1- to 10-digit integer from 0 to 2147483647 to be used in the comparison. WSim compares the counter or integer specified on the TEXT operand against integer.
1 IF WHEN=IMMED,LOCTEXT=($RECALL,B+45,5$), Check 2 different screen
COND=EQ,TEXT=($RECALL,B+132,5$), locations to see if they
THEN=NSW1(ON) are equal.
Note: LOCTEXT cannot be coded with LOCLENG, AREA, LENG, LOC, CURSOR,
or EVENT.