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.

Miscellaneous functionsMiscellaneous functionsSyntaxstop()write (arg1, ...,argn)writeln (arg1, ...,argn)loadFile(string)eval(string)EffectStops the execution of the program at the current statement and, if the debuggeris enabled, enters debug mode.Converts the arguments to strings and prints them to the current debug output.The implementation depends on the application in which <strong>ILOG</strong> Script is embedded.The function writeln prints a newline at the end of the output, while write doesnot.Loads the script file whose path is string. The path can be either absolute orrelative. If this path does not designate an existing file, the file is looked up usinga method which depends on the application in which the script is embedded;typically, a file with the name string is searched for in a list of directories specifiedin the application setup.Executes string as a program, and returns the value of the last evaluatedexpression. The program in string can use all the features of the language,except that it cannot define functions; in other words, the function statement is notallowed in string.Examples:eval("2*3") -> 6eval("var i=0; for (var j=0; j

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

Saved successfully!

Ooh no, something went wrong!