OpenWGA 7.9 - TMLScript reference

CollectionResult
Method :

contains(context)

On object CollectionResult
Usage

contains(ctx) takes a WGContext object as parameter and checks if this context is contained in the collection result.

Description This method has been introduced in version 7.7.1
Parameters

WGContext

Return value true | false
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • TMLScript tasks in jobs
  • Content type events
Examples
WGA.nav().children().contains(context("name:something"))