The empty Statement - Maple Programming Help

Online Help

All Products    Maple    MapleSim

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

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:

a:=1; ;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




Download Help Document

Was this information helpful?

Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam