Shop OBEX P1 Docs P2 Docs Learn Events
FemtoBasic and BoeBotBasic Manual — Parallax Forums

FemtoBasic and BoeBotBasic Manual

Mike GreenMike Green Posts: 23,101
edited 2007-04-10 19:19 in Propeller 1
I've noticed that the descriptions of the INPUT and PRINT statements
are missing from the FemtoBasic/BoeBotBasic manual. Here they are:

INPUT { "<prompt>";} <var> {,<var>}

If given, the <prompt> is displayed and an input line may be entered.
For each variable given, an expression is evaluated from the input line.
The expressions may be separated by commas (",") or, if unambiguous,
by spaces. These expressions may contain variable names, operators,
or "pseudo-variables". If more expressions are given than variables,
the excess are ignored. An error is treated as if it occurred on the line
where the INPUT statement is given.

PRINT {{"<string>" | <expr> } {, | ;}}

A series of expressions or string constants are given, separated by
commas (",") or semicolons (";"). If a comma is used, enough spaces
are inserted to display the next item at the next display column divisible
by 8. If a semicolon is used, the next item begins at the next column.
If the statement ends with a comma or semicolon, an end of line is not
inserted. A PRINT statement by itself causes an end of line to be displayed
Sign In or Register to comment.