Please enable JavaScript to view this site.

The IF function is used to test data on the input page and compare it to the specified string. If the IF is true all the functions following up to the ENDIare executed. An IF can be followed by any number of IF's but the following functions will only be executed if all the conditions are satisfied.

The sequence is IF, IF, Functions, ENDI.

Testing is character based unless the ‘Compare Data’ field is all numeric including preceding zeros, in this case the test is Numeric.

If the test is numeric the field to be compared is checked to make sure it contains only numbers, (preceding blanks and the characters “.” and “,” are counted as zeros) and a numeric comparison is carried out. If non-numeric characters are found in the field to be compared (excepting preceding blanks, commas and decimal points), the test will not be successful.

IF from line number

The line number of the input page to be tested.

start position

The first position in the line to be tested.

end position

The last position in the line to be tested.

Compare operation

The condition being tested, possible conditions are Equal EQ, Not Equal NE, Greater than GT, Less than LT.  

Compare data

This is the data used to compare with the data on the input page.

Character fields maximum 30 chs. EQ, NE, GT, LT, GE, LE

Numeric fields maximum 10 chs (numeric only: blank and ‘.,’ are treated as zeros) GT, LT, GE, LE.

Function keys

F3=Exit

Returns to the Work with PPD screen without updating.

F12=Previous

Returns to the previous screen without updating.