empty statement - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim

Home : Support : Online Help : Programming : Flow Control : empty statement

The empty Statement



SYNTAX: null;


An empty statement in Maple contains no command at all. For example, the empty statement is the second statement in:

a1; ;quit


The main purpose of the empty statement is to allow redundant semicolons to be used without causing a syntax error.  For example, in strict Maple syntax there would be no semicolon statement separator following the cube statement below:

for i to 5 do

    sqr[i] := i^2;

    cube[i] := i^3

end do;


However, users who get used to ending all statements with a semicolon are accommodated since, if a semicolon follows i^3 here, then in the view of the Maple parser there is an empty statement prior to the keyword end do.

See Also

empty symbol