length: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Added version.)
Line 1: Line 1:
{{MacroFunction
{{MacroFunction
|name=length
|name=length
|version=1.3b48
|description=
|description=
Returns the length of a string.
Returns the length of a string.
Line 6: Line 7:
|usage=
|usage=
<source lang="mtmacro" line>
<source lang="mtmacro" line>
[h: len = length(str)]
length(str)
</source>
</source>



Revision as of 11:34, 10 March 2009

length() Function

Introduced in version 1.3b48
Returns the length of a string.

Usage

length(str)

Example

[r, length("abcde")]
Returns 5