OpenWGA 7.9 - TMLScript reference

WGA » WGA.TMLScript
Method :

runScript([context,]code)

On object WGA.TMLScript
Usage Runs a TMLScript
Description

The script must use "return" to return a result.

Parameters

code (String)

The script code to run

context (TMLContext) - optional

The context the script will use

Return value The result of the return value of the script expression
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • TMLScript tasks in jobs
  • Content type events