lower: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Added version.)
Line 1: Line 1:
{{MacroFunction
{{MacroFunction
|name=lower
|name=lower
|version
|description=
|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.
Line 6: Line 7:
|usage=
|usage=
<source lang="mtmacro" line>
<source lang="mtmacro" line>
[h: str = lower(str)]
lower(str)
[h: str = lower(str, numChars)]
</source>
<source lang="mtmacro" line>
lower(str, numChars)
</source>
</source>



Revision as of 11:37, 10 March 2009

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