User Tools

Site Tools


en:compoundstatementprogramsyntax

This is an old revision of the document!


Compound Statement

Multiple statements may be included on a single line by separating then with a : (colon), this is called a compound statement.

total= 0: for t=1 to 10: total = total + t: next t: print "the total of 1 to 10 is " + total

Special care should be taken when including if/then statements in a compound line:

en/compoundstatementprogramsyntax.1471114227.txt.gz · Last modified: 2020/02/28 10:46 (external edit)