OpenWGA 7.0 - TMLScript reference

List
Method :

indexOf(wert)

On object List
Usage Returns the index position of a value in the list
Description Searches for the given value in the list and, if found, returns the index position of it. Returns -1 if it is not found.

If the value is contained in the list more than one time it returns the first occasion.

Like list.contains() this method is case sensitive on strings.
Parameters wert:
Value whose position if searched in the list
Return value First position of the value or -1 if it is not contained (Number)
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • TMLScript tasks in jobs
  • Content type events
    portletevent