Previous Topic: KEY StatementNext Topic: ENTER, TABF, TABB, and BRANCH Statements


COMPARE and BRANCH Statements

The following COMPARE statement compares the value of A1 to the total number of rows on the screen to determine if all the lines of the screen have been copied:

COMPARE A1,&LINECT
BRANCH GT,STOP

If A1 is greater than (GT) the number of rows on the screen, the BRANCH statement directs the program to the line labeled STOP, where the variable LINECT is deleted and the program ends.