Arbortext Command Language > Functions by Alphabetical Listing > jscript
  
jscript
jscript(expr[, window])
This function sends the string expr to the Microsoft Windows JScript interpreter to be evaluated, returning the result as a string. If the window parameter is not specified, the JScript expression is evaluated in the global JScript script context so previously defined JScript functions are accessible.
The optional window parameter is the identifier of a XUI dialog box that has a script context. If window is provided, the script executes in that dialog box’s script context.
Example
name = jscript('Application.prompt("Name", "")')
* 
In the Microsoft Script Engine interfaces, “True” is represented by minus one (1) and “False” by zero (0).
Related Topics
javascript function
vbscript function
perlscript function