5.13. IF..THEN
IF Comp { AND/OR Comp } THEN Label
Performs one or more comparisons. Each Comp term can relate a variable to a constant or other variable and must be in the following form:
Var ( < | <= | = | <> | >= | > ) Value
All comparisons are unsigned since PBC only supports unsigned types. A variable must occur on the left.
The THEN in an IF..THEN is essentially a GOTO. If the condition is true, the program will GOTO the label after the THEN. If the condition evaluates to false, the program will continue at the next line after the IF..THEN. Another statement may not be placed after the THEN, it must be a label
Bookmarks