General
Provides a general overview of OPL syntax.
A script comprises a sequence of statements. An expression can also be used whenever a statement is expected, in which case its value is ignored and only its side effect is taken into account.
You can put multiple statements or expressions on a single line if you separate them with a semi-colon (;), for example, the following two scripts are equivalent:
Script1
writeln("Hello, world")
x = x+1
if (x > 10) writeln("Too big")
Script2
writeln("Hello, world"); x = x+1; if (x > 10) writeln("Too big")