This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
en:print [2020/02/28 10:46] 127.0.0.1 external edit |
en:print [2020/04/17 09:13] admin |
||
---|---|---|---|
Line 1: | Line 1: | ||
===== Print (Statement) ===== | ===== Print (Statement) ===== | ||
==== Format ==== | ==== Format ==== | ||
- | **print** [[expressions|expression]] [ ; ] | + | **print** [[expressions|expression]] [ ; ]\\ |
+ | **?** [[expressions|expression]] [ ; ]\\ | ||
+ | **print** [[expressions|expression]] , | ||
+ | **?** [[expressions|expression]] , | ||
==== Description ==== | ==== Description ==== | ||
- | Writes text to the text output window, appending a new line. If the optional semicolon is included, no new line is appended. | + | Writes text to the text output window, appending a new line. |
+ | |||
+ | If the optional semicolon is included | ||
+ | |||
+ | ==== Example ==== | ||
+ | |||
+ | < | ||
+ | print "all one" | ||
+ | ? " | ||
+ | print " | ||
+ | for t = 1 to 10 | ||
+ | ? t, t*2 | ||
+ | next t | ||
+ | </ | ||
+ | Will output: | ||
+ | < | ||
+ | all one | ||
+ | somemore | ||
+ | 1 2 | ||
+ | 2 4 | ||
+ | 3 6 | ||
+ | 4 8 | ||
+ | 5 10 | ||
+ | 6 12 | ||
+ | 7 14 | ||
+ | 8 16 | ||
+ | 9 18 | ||
+ | 10 20 | ||
+ | </ | ||
==== See Also ==== | ==== See Also ==== | ||
{{page> | {{page> | ||
+ | ==== History ==== | ||
+ | |2.0.0|Added columnar output (comma) and the '?' |