OpenWGA 7.10 - TMLScript reference

WGA » WGA.List()
Method :

trim()

On object WGA.List()
Usage

Removes null values and empty strings from 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, null, 2, "", 3]).trim()
//returns [1,2,3]