Owner's Manual
61
GOTO
Line # GOTO line number
The GOTO statement is used to change the normal flow of the program(which is from the
lowest statement number to the highest). A GOTO command transfers control to the specified
line.
Examples:
10 GOTO 130
200 GOTO 65
IF...THEN...ELSE
In general terms, the IF...THEN... statement is used for CONDITIONAL BRANCHING. It
uses the general form "IF (condition) THEN (action clause)". A condition is made up of
an expression, a relation and an expression.
Any BASIC expression, either numeric or string, may be used, but both expressions must
be the same type.
Relations or comparisons used in the IF...THEN statement are the following:
= Equal to
< = Less than or equal to
< > Not equal to
> = Greater than or equal to
< Less than
> Greater than
Examples of how you can use conditionals:
IF....THEN A=B
IF....THEN GOTO
IF....THEN GOSUB
IF....THEN PRINT
IF....THEN INPUT