Commodore 64 User Manual page 124

Hide thumbs Also See for 64:
Table of Contents

Advertisement

on the same line, the computer assigns priorities as follows : First, ex-
ponentiation. Next , multiplication and division, and last , addition and
subtraction.
You can change the order of operations by enclosing within pa-
rentheses the calculation to be performed first. Operations enclosed in
parentheses will take place before other operations.
There are also operations for equalities and inequalities:
= Equal To
< Less Than
> Greater Than
<= Less Than or Equal To
>= Greater Than or Equal To
<> Not Equal To
Finally, there are three logical operators:
AND
OR
NOT
These are used most often to join multiple formulas in IF . . . THEN
statements . For example:
IF A = B AND C = D THEN 100 (Requires both parts to be true)
IF A = B OR C = D THEN 100 (Allows either part to be true)
COMMANDS
CONT (Continue)
This command is used to restart the execution of a program which has
been stopped by either using the STOP key, a STOP statement, or an
END statement within the program. The program will restart at the exact
place from where it left off.
CONT will not work if you have changed or added lines to the pro-
gram (or even just moved the cursor), or if the program halted due to an
error, or if you caused an error before trying to restart the program. In
these cases you will get a CAN'T CONTINUE ERROR.
114
S
O

Hide quick links:

Advertisement

Table of Contents
loading

Related Products for Commodore 64

Table of Contents