Page History
...
Code Block |
---|
Function MAX (X,Y) MAX=If X>Y Then X Else Y Return MAX |
Single-line If statement
Description
...
Code Block |
---|
* Using a single-line If statement. If X+5 GT Z Then GoSub MAJOR Else GoSub MINOR /* If X + 5 is greater than Z, the program branches to the internal subroutine, MAJOR. Otherwise, the program branches to subroutine MINOR. */ |
...
Multi-line If statement
Syntax
...