OpenWGA 7.2 - TMLScript reference
TMLContext "this"Method :
isTrue(name)
On object | TMLContext "this" |
Usage |
Returns if the contents of an item or WebTML variable is regarded "true" |
Description |
This is the TMLScript pendant of WebTML attribute istrue and tests if the contents of this variable or item may be regarded "true". This is the case when an item or variable of that name is defined and contains one of the following value:
This technique for testing boolean values is mostly to be used for WebTML variables with pseudo boolean values that have been set via WebTML, and therefor should be tested by the istrue Attribute. In pure TMLScript it of course is better to use native JavaScript boolean values and test them with JavaScript methods. |
Parameters |
name (String):
Name of the WebTML variable or item to test |
Return value | (Boolean) |
Allowed in script types |
|