OpenWGA 7.10 - TMLScript reference

TMLContext "this"
Method :

hasRelation(relationname)

On object TMLContext "this"
Usage Returns true, if the current content has the specified relation. False otherwise.
Parameters

relationname (String)

The name of the relation to test for

Writable False
Return value true | false
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • TMLScript tasks in jobs
  • Content type events