Commodore 16 User Manual
Download Operation & user’s manual of Commodore 16 Desktop for Free or View it Online on All-Guides.com.
>
=
o,
=
> |
S
greater lhan or
equal to
<> or >< is noi equal
lo
Finally, there are three
LOGICAL operators, with lower priority than
both arithmetic and relational operators;
AND
OR
NOT
These are
used most often lo Join multiple tormulas in IF
. . .
THEN
statements. When they are
used
with arithmetic operators,
they are
evaluated last {i.e
,
after + and -)
EXAMPLES;
IFA=BANDC=DTHEN100
IF A
=
B OR C=D THEN 100
A-S:B-4:PRrNTA=B
A-9:B«4:PRINTA>B
PRINT
123 AND 15:PRINT
5 OR 7
requires
both A-B & C-D to be
true
allows either
A
=
B or C-D
to
be
true
displays
a
value ot
displays
a value ot
-1
displays
11
and?
i
l
BASIC Abbreviation
and Reference Chart
I
i
SB
:
'
KEYWORD
'.V-i.f
./|.^
ON TYPE
ABS
a
SHIFT
6 tunction— numeric
ASC a SHIFT
s
function—
numeric
ATN
3
SHIFT
T luncllon—
numeric
AUTO a
SHUT
U
command
BACKUP
b
SHUT
A command
BOX b SHIFT
statement
CHAR
ch SHIFT
A statement
CHR$
c
SHIFT
H lunctton—string
CIRCLE
c
SHIFT
1 statement
CLOSE cl SHIFT
statement
CLR
c
SHIFT
L statement
CMD
c
SHIFT
M statement
COLLECT col SHIFT
L command
COLOR
CO
SHIFT
L statement
CONT
c
SHIFT
command
COPY
CO
SHIFT
P command
COS
none (unction— numeric
DATA
d SHIFT
A statement
DEC
f Or e
function— numeric
DEFFN
d
SOTT
E statement
DELETE
de
SHIFT
L command
DIM
d
SHIFT 1
statement
DIRECTORY
di
SHIFT
R command
DLOAD
d
SHIFT
L command
DO
none
statement
DRAW
d
SHIFT
R statement
DSAVE
d
SHIFT
S command
END
e
SHOT
N
statement
ERRS
e
SHIFT
R tunction— string
EXP
•. j«_ p.
e
SHIFT
X (unction- numeric
FOR
I SHOT
statement
FRE
f SHOT
R tunction- numeric
GET
g
SHIFT E statement
GETKEY
getk
SHIFT
E statement
GET*
none statement
GOSUB
go
SHOT
S statement
GOTO
g
SHIFT
statement
GRAPHIC
SHIFT
R
statement
157