EasyManua.ls Logo

Commodore Plus 4 - Conditional statements

Commodore Plus 4
464 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...
74
The
BASIC
Language
PUDEF
Abbr.
pU
PUDEF
"one
to
four
characters"
Lets
you
replace
with
any
other
symbol
the
symbols
displayed
by
subsequent
PRINT
USING
commands.
You
can
replace
blanks,
commas,
decimal
points,
and
dollar
signs
from
PRINT
USING
commands
that
follow
the
PUDEF
command.
You
can
issue
as
many
PUDEF
commands
as
necessary
to
print
formatted
data
according
to
your
special
purposes.
Characters
are
replaced
by
their
position
in
the
PUDEF
command.
The
default
values
for
each
position
are
used
if
you
do
not
specify
a
different
character
in
the
appropriate
position.
Parameter
Values
Default
First
Second
Third
Fourth
Any
character
Any
character
Any
character
Any
character
Blank
space
Comma
Decimal
point
Dollar
sign
When
you
want
to
replace
all
the
blank
spaces
in
the
output
printed
by
a
PRINT
USING
command,
put
the
replacement
character
in
the
first
position
in
the
PUDEF
command.
When
you
want
to
replace
commas,
put
the
replacement
character
in
the
second
position,
and
so
on.
Because
the
computer
recognizes
replacement
characters
by
position,
you
must
type
the
default
values
in
their
positions
if
the
following
two
conditions
are
true:
You
are
not
changing
the
default
values.
They
appear
in
the
PUDEF
format
before
the
characters
you
are
changing.
If
the
default
values
appear
after
the
changes,
you
can
omit
the
defaults
and
just
end
the
command.
For
example,
if
you
want
to
leave
blanks
and
commas
when
you
change
decimal
points,
you
must
place
a
blank
and
a
comma
in
their
positions
in
the
PUDEF
command
and
then
type
the
decimal
point
replacement
in
the
third
position.
Examples:
90
PUDEF
"//"
Replaces
blanks
with
slashes
and
decimal
points
with
apostrophes.
Commas
and
dollar
signs
are
retained.
75
PUDEF
"
.bA"
Replaces
commas
with
decimal
points,
decimal
points
with
lowercase
b's,
and
dollar
signs
with
A's.
Blanks
are
retained.

Other manuals for Commodore Plus 4

Related product manuals