OpenWGA 7.10 - TMLScript reference

List
Method :

lastIndexOf(value)

On object List
Usage Returns the (last) 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 last occasion.

Like list.contains() this method is case sensitive on strings.
Parameters value:
Value whose position is searched in the list
Return value Last index position of the value in the list, -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