Delimiters and white space

Every MEL statement should end with a semicolon (;). In most cases this is an absolute requirement.

print("End with a semicolon.");
print("Semicolons separate"); print(" different statements.");

Whitespace (spaces, tabs, and newlines) is ignored by MEL (except inside strings, of course).

Remember that unlike some other languages, a newline does not separate statements in MEL. So the following is an error:

print("Hello")
print("There")

You must add a semicolon to separate the statements:

print("Hello");
print("There")

Very important note

In MEL, unlike most languages, all statements inside a block (surrounded by curly braces) must end in semicolons, even if it is the only statement in the block.

if ($s > 10) {print("Glonk!")} // Syntax error.
if ($s > 10) {print("Glunk!");} // Notice the semicolon.