length: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Applied Template:MacroFunction)
Line 1: Line 1:
==Function length==
{{MacroFunction
 
|name=length
|description=
Returns the length of a string.
Returns the length of a string.


===Usage===
|usage=
<source lang="mtmacro" line>
<source lang="mtmacro" line>
[h: len = length(str)]
[h: len = length(str)]
</source>
</source>


===Example===
|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")]
Returns 5