lower: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(New page: ==Function lower== Returns the lower case version of a string. If the number of characters is not specified then the whole string is converted to lower case. ===Usage=== <source lang="mtm...)
 
No edit summary
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
==Function lower==
{{stub}}
{{MacroFunction
|name=lower
|version
|description=
Returns the lower case version of a string. If the number of characters is not specified then the whole string is converted to lower case.
Returns the lower case version of a string. If the number of characters is not specified then the whole string is converted to lower case.


===Usage===
|usage=
<source lang="mtmacro" line>
<syntaxhighlight lang="mtmacro" line>
[h: str = lower(str)]
lower(str)
[h: str = lower(str, numChars)]
</syntaxhighlight>
</source>
<syntaxhighlight lang="mtmacro" line>
lower(str, numChars)
</syntaxhighlight>


 
|example=
===Examples===
<syntaxhighlight lang="mtmacro" line>
<source lang="mtmacro" line>
[r: lower("This Is a Test")]
[r: lower("This Is a Test")]
[r: lower("This Is a Test", 1)]
[r: lower("This Is a Test", 1)]
</source>
</syntaxhighlight>
Returns  
Returns  
   this is a test
   this is a test
   this Is a Test
   this Is a Test
}}
[[Category:String Function]]

Latest revision as of 20:09, 15 March 2023

 This article is a stub, you can help the RPTools Wiki project by contributing content to expand this article.

lower() Function

Returns the lower case version of a string. If the number of characters is not specified then the whole string is converted to lower case.

Usage

lower(str)
lower(str, numChars)

Example

[r: lower("This Is a Test")]
[r: lower("This Is a Test", 1)]

Returns

  this is a test
this Is a Test