eval

fun eval(expr: String): Boolean

Evaluates expr and returns its Boolean result.

Return

the boolean result of the evaluation

Parameters

expr

the boolean expression to evaluate

Throws

if checkCode rejects expr, or it fails to compile or run

if the expression does not evaluate to a Boolean