isPropertyEmpty: Difference between revisions
Jump to navigation
Jump to search
(→Usage) |
|||
Line 10: | Line 10: | ||
===Examples=== | ===Examples=== | ||
<source lang="mtmacro" line> | <source lang="mtmacro" line> | ||
[r, if(isPropertyEmpty(propertyName)): propertyName = someDefaultValue] | [r, if(isPropertyEmpty("propertyName")): propertyName = someDefaultValue] | ||
</source> | </source> |
Revision as of 20:49, 13 January 2009
Function isPropertyEmpty
Returns 1 if the token property for the Current Token is empty. A token property is empty if it is null, if an empty string ("") has been assigned to it, it is not considered empty.
Usage
[h: empty = isPropertyEmpty("propertyName")]
Examples
[r, if(isPropertyEmpty("propertyName")): propertyName = someDefaultValue]