Format: stopif [file_relative_line_number] exp
exp is an expression in the current language.
Sets a conditional breakpoint at the line number specified. If a line number is not specified, then use the current line number. The program breaks at this point if the condition given in exp is true. For example, the following command stops the debugger at line 20 if y is equal to five:
stopif 20 y==5
If you omit the line number, then you should not have expressions beginning with a number, otherwise it will be ambiguous. For example, the following should not be done:
stopif 5==y
The debugger tries to set a breakpoint on line five that stops on the condition (==y), which does not make sense. If you do this, enclose the expression in parentheses:
stopif (5==y)
MULTI will do limited syntax checking to be sure "y" exists, but the user needs to use variables which exist.
See also "Procedure-relative vs file-relative line numbers" and "Address expressions".