User Tools

Site Tools


en:print

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
en:print [2020/04/11 12:16]
admin
en:print [2020/04/17 09:13]
admin
Line 2: Line 2:
 ==== Format ==== ==== Format ====
 **print** [[expressions|expression]] [ ; ]\\ **print** [[expressions|expression]] [ ; ]\\
-**print** [[expressions|expression]] ,[[expressions|expression]]... [ ]+**?** [[expressions|expression]] [ ; ]\\ 
 +**print** [[expressions|expression]] ,[[expressions|expression]]... 
 +**?** [[expressions|expression]] ,[[expressions|expression]]...
  
 ==== Description ==== ==== Description ====
 Writes text to the text output window, appending a new line.  If multiple expressions are included in a single print statement, separated by commas, they will be output in 14 character wide left justified columns. Writes text to the text output window, appending a new line.  If multiple expressions are included in a single print statement, separated by commas, they will be output in 14 character wide left justified columns.
  
-If the optional semicolon is included, no new line is appended.+If the optional semicolon is included at the end of the statement, no new line is appended.  The new line suppress is only available for print with a single expression.
  
 ==== Example ==== ==== Example ====
Line 13: Line 15:
 <code> <code>
 print "all one" print "all one"
-print "some";+"some";
 print "more" print "more"
 for t = 1 to 10 for t = 1 to 10
- print t, t*2+ t, t*2
 next t next t
 </code> </code>
Line 39: Line 41:
  
 ==== History ====  ==== History ==== 
-|2.0.0|Added columnar output (comma)|+|2.0.0|Added columnar output (comma) and the '?' as shortcut|
en/print.txt · Last modified: 2020/04/17 09:13 by admin