OpenWGA 7.9 - TMLScript reference

TMLContext "this"
Method :

isEmpty(item)

On object TMLContext "this"
Usage Returns if the given WebTML variable or item is regarded "empty"
Description An Item / WebTML variable is regarded "empty" in the following cases:
  • It does not exist (neither as WebTML variable nor as item)
  • The contents is null
  • The contents is an empty string or consists only of "blind characters" that are not displayed
  • The contents is an empty list (size is 0)
  • The contents is the string "<br>" (which may happen on a rich text item that has been stored empty)
Parameters item (String): Name of an item or WebTML variable
Return value true if it is empty, false otherwise
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • TMLScript tasks in jobs
  • Content type events