![]() |
![]() |
47 |
![]() |
Syntax Summary
|
IF (single line version)
(see Chapter 5)
action.
It
is
retained only forcompatibility with
earlier
versions of BASIC.
Syntax IF
testvalue[colons
)THEN
[instructions)[[colons
)ELSE
elseinstructions)
or IF
testvalue[colons
)GOTO
location[[colons
)
ELSE
elsemnstructions)
where
testvalue
is a
truth-value
instructions
and
elseinstructions
are either (a) a line number, orb)
a
sequence of BASIC statements, each separated by
colons
colons
isa sequence of
one or more colons, but not new lines.
IFEND IF
(see Chapter 5)
the
values of various expressions.
[ELSEI F
testvalue2[:
)THEN
[:
)statements2[:
))
[ELSEIF
testvalue3[:
)THEN[:
)statements3[:
))
[ELSE
[:
)elsestatements[:
))
where the
testvalues
are
truth-values,
and
statementst, statements2,...
and
elsestatements
are
sequences of BASIC 2 Plus statements, separated with colons or new lines in
the
usual way.
IMPORT
(see Chapter 7)
imported into a program unit from a module.
|
BASIC 2 PIus: User Guide & Quick Reference
47
|
![]() |
![]() |
47 |
![]() |