The macro returns the number of tokens in the specified string.
The following table describes the macro specific attributes for the macro:
| Macro Specific Attributes | ||
| Attribute | Description | Required |
| delim | The delimiter character. The default is a comma. | No |
| property | The name of the property in which to return the count. | Yes |
| string | The string to be searched. | Yes |
None
<TokenCount property="count" string="1,2,3,4,5,6"/>
<echo>${count}</echo>
Result:
[echo] 6