Evaluates a Python expression and gets its Boolean value.

 

   

Syntax
 

[C#]
bool EvalBoolean(string expr, in options)

 

Throws Exceptions ObjectDisposedException: Thrown when this PythonScope has been disposed of.
Throws Exceptions ArgumentNullException: Thrown when expr is null.
Throws Exceptions InvalidCastException: Thrown when the result is not a Boolean.

 

   

Params
 
Name Description
expr A Python expression.
options Options for running Python code.
return The Boolean value of the result.

 

   

Notes
 
Evaluates a Python expression and gets its Boolean value.

 

   

Example
 
None.