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
Next revision
Previous revision
Next revision Both sides next revision
en:print [2020/04/11 12:11]
admin
en:print [2020/04/11 12:16]
admin
Line 1: Line 1:
 ===== Print (Statement) ===== ===== Print (Statement) =====
 ==== Format ==== ==== Format ====
-**print** [[expressions|expression]] [ ; ]+**print** [[expressions|expression]] [ ; ]\\
 **print** [[expressions|expression]] ,[[expressions|expression]]... [ ; ] **print** [[expressions|expression]] ,[[expressions|expression]]... [ ; ]
  
Line 8: Line 8:
  
 If the optional semicolon is included, no new line is appended. If the optional semicolon is included, no new line is appended.
 +
 +==== Example ====
 +
 +<code>
 +print "all one"
 +print "some";
 +print "more"
 +for t = 1 to 10
 + print t, t*2
 +next t
 +</code>
 +Will output:
 +<code>
 +all one
 +somemore
 +1             2
 +2             4
 +3             6
 +4             8
 +5             10
 +6             12
 +7             14
 +8             16
 +9             18
 +10            20
 +</code>
  
 ==== See Also ==== ==== See Also ====
 {{page>en:start#Text Output&noheader}} {{page>en:start#Text Output&noheader}}
- 
  
 ==== History ====  ==== History ==== 
 |2.0.0|Added columnar output (comma)| |2.0.0|Added columnar output (comma)|
en/print.txt ยท Last modified: 2020/04/17 09:13 by admin