length: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Conversion script moved page length to Length without leaving a redirect: Converting page title to first-letter uppercase)
No edit summary
 
(One intermediate revision by one other user not shown)
Line 6: Line 6:


|usage=
|usage=
<source lang="mtmacro" line>
<syntaxhighlight lang="mtmacro" line>
length(str)
length(str)
</source>
</syntaxhighlight>


|example=
|example=
<source lang="mtmacro" line>
<syntaxhighlight lang="mtmacro" line>
[r, length("abcde")]
[r, length("abcde")]
</source>
</syntaxhighlight>
Returns 5
Returns 5
}}
}}
[[Category:String Function]]
[[Category:String Function]]

Latest revision as of 17:43, 15 March 2023

length() Function

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

Usage

length(str)

Example

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