12.07.2015 Views

ILOG OPL Development Studio Language Reference Manual

ILOG OPL Development Studio Language Reference Manual

ILOG OPL Development Studio Language Reference Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

GeneralA script comprises a sequence of statements. An expression can also be used whenever astatement is expected, in which case its value is ignored and only its side effect is taken intoaccount.You can put multiple statements or expressions on a single line if you separate them with asemi-colon (;), for example, the following two scripts are equivalent:Script1writeln("Hello, world")x = x+1if (x > 10) writeln("Too big")Script2swriteln("Hello, world"); x = x+1; if (x > 10) writeln("Too big")178I L O G O P L D E V E L O P M E N T S T U D I O L A N G U A G ER E F E R E N C E M A N U A L

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!