ScriptBool

Interprets the result of a script as boolean. This function is not available for all applications.

Parameter:

String            Script language (e.g. 'CSharpScript', 'VBScript')

String            Code

String            (optional) Function

Number                   (optional) Timeout in ms

Return value:

Boolean

Example:

ScriptBool("CSharpScript", "WScript.Result=DateTime.IsLeapYear(1971);")