EasyManua.ls Logo

Apple IIe - Page 114

Apple IIe
320 pages
Print Icon
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...
114 Apple lie Users
Handbook
Example
10
PRINT "1234567890"
20
HTAB
3:
PRINT
3;
30
HTAB
9:
PRINT
9;
40
HTAB
5:
PRINT 5
]RUN
[Ret]
1234567890
3 5 9
In
the
preceding
example,
line
20
places
the
cursor at
position
3
and displays a
3.
·
ln
line
30,
the
cursor
is
moved
to
position
9.
The
PRINT
statement
displays a
9.
In
line
40,
HT AB moves
the
cursor
back
to
position
5,
and
the
PRINT statement displays a
5.
Applesoft
IF
.. THEN
Integer
The
IF
..
THEN statement
sets
up
a
condition
which
will
influence
the
program
flow.
Configuration
IF
expression THEN
statement
[:statement. .. ]
expression
is
a
conditional
expression.
statement
can
be
any
BASIC statement.
'
If
the
expression
is
evaluated
as
true,
the
THEN
portion
of
the
statement
will
be executed.
In
Applesoft
BASIC, if
the
expression evaluates
as
true,
the
statement
following
THEN
will
be
executed.
If
the
expression
evaluates
as
false,
the
statement in
the
next
program
line
will
be
executed.
In
Integer
BASIC, if
the
expression evaluates
as
true,
the
statement(s)
following
THEN
will
be executed.
If
the
expression

Other manuals for Apple IIe

Related product manuals