OpenWGA 7.10 - TMLScript reference

WGA » WGA.List()
Method :

reverse()

On object WGA.List()
Usage

Reverses the order of the list and returns the resulting list as WGAList object for further method chaining.

Return value

WGAList object with new values.

Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • TMLScript tasks in jobs
  • Content type events
Examples

WGA.List([1, 2, 3]).reverse()
//returns [3,2,1]