User Tools

Site Tools


en:compoundstatementprogramsyntax

Differences

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

Link to this comparison view

Next revision
Previous revision
en:compoundstatementprogramsyntax [2016/08/13 12:49]
admin created
en:compoundstatementprogramsyntax [2016/08/13 14:04]
admin
Line 1: Line 1:
 === Compound Statement === === Compound Statement ===
  
-Multiple statements may be included on a single line by separating then with a : (colon), this is called a compound statement.+Multiple statements may be included on a single line by separating then with a : (colon), this is called a compound statement.  In the context of the language a single statement is also considered a "compound statement".
  
 <code> <code>
 total= 0: for t=1 to 10: total = total + t: next t: print "the total of 1 to 10 is " + total total= 0: for t=1 to 10: total = total + t: next t: print "the total of 1 to 10 is " + total
-<code>+</code>
    
 Special care should be taken when including [[if|if/then]] statements in a compound line: Special care should be taken when including [[if|if/then]] statements in a compound line:
  
en/compoundstatementprogramsyntax.txt ยท Last modified: 2020/02/28 10:46 (external edit)