evaluate

fun evaluate(script: String): Any?

Executes the selected script. Returns the last script's expression as the result. If unable to execute the script, ScriptEngineException will be thrown.


fun evaluate(scriptFile: FileHandle): Any?

Executes the selected scriptFile. Returns the last script's expression as the result. If unable to execute the script, ScriptEngineException will be thrown.