length: Difference between revisions
Jump to navigation
Jump to search
(→Usage) |
Verisimilar (talk | contribs) m (Applied Template:MacroFunction) |
||
Line 1: | Line 1: | ||
= | {{MacroFunction | ||
|name=length | |||
|description= | |||
Returns the length of a string. | Returns the length of a string. | ||
|usage= | |||
<source lang="mtmacro" line> | <source lang="mtmacro" line> | ||
[h: len = length(str)] | [h: len = length(str)] | ||
</source> | </source> | ||
|example= | |||
<source lang="mtmacro" line> | <source lang="mtmacro" line> | ||
[r, length("abcde")] | [r, length("abcde")] | ||
</source> | </source> | ||
Returns 5 | Returns 5 | ||
}} | |||
[[Category:String Function]] |
Revision as of 02:34, 9 March 2009
length() Function
Returns the length of a string.
Usage
[h: len = length(str)]
Example
[r, length("abcde")]