isPropertyEmpty: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 5: Line 5:
===Usage===
===Usage===
<source lang="mtmacro" line>
<source lang="mtmacro" line>
[h: empty = isEmpty(propertyName)]
[h: empty = isPropertyEmpty(propertyName)]
</source>
</source>


Line 11: Line 11:
===Examples===
===Examples===
<source lang="mtmacro" line>
<source lang="mtmacro" line>
[r, if(isEmpty(propertyName)): propertyName = someDefaultValue]
[r, if(isPropertyEmpty(propertyName)): propertyName = someDefaultValue]
</source>
</source>

Revision as of 13:19, 13 December 2008

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]