JavaScript Evaluation

From STIQ

Jump to: navigation, search

Javascript evaluation provides the full power of javascript in constructing a command parameter. To use this mechanism, the entire parameter value must be prefixed by javascript '{' with a trailing '}'. The text inside the braces is evaluated as a javascript expression, and can access previously stored variables using the storedVars map detailed above.

Note that variable substitution cannot be combined with JavaScript evaluation.


Example:

store javascript{'merchant' + (new Date()).getTime()} merchantId
type textElement javascript{storedVars['merchantId'].toUpperCase()}
Personal tools
Noteworthy