OpenWGA 5.4 - TMLScript reference

Lists
Method :

list.contains(wert)

On object Lists
Usage Controls if a value is contained in the list
Description This method is case sensitive on strings. list.contains("value") will not return true if only "Value" is contained.
Parameters wert:
The value to test
Return value true if the value is contained, false otherwise (Boolean)
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • TMLScript tasks in jobs
  • Content type events
    portletevent