EasyManua.ls Logo

Sinclair QL - Page 241

Sinclair QL
422 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
50
statement
A SuperBASIC statement
IS
an Instruclion
to
the OL
to
perform a specific operation,
tor
example:
LET a =2
will
assign the value 2
to
the variable identified
by
a.
More than one statement can be written
on
a single line by separating the Individual
statements trom each other by a colon ( :
),
for example:
LET a = a + 2 :
PR
I
NT
a
will
add 2
to
the value Identified by the variable a and
will
store the result back
In
a.
The answer will then be printed
out
If
a line
IS
not preceded
by
a line number then the line
IS
a direct command and
SuperBASIC processes the statement
immediately.
If
the statement
is
preceded by a
line number then the statement becomes part
of
a SuperBASIC program and
is
added
into the SuperBASIC program area
for
later execution
Certain SuperBASIC statements can have
an
effect on the other statements over the rest
of the logical
line
in
which they appear ie.
IF,
FOR, REPeat, REM,
etc.
It
is
meaningless
to
use certain SuperBASIC statements
as
direct commands. '
12/84

Other manuals for Sinclair QL

Related product manuals