upper: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Conversion script moved page upper to Upper 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>
upper(str)
upper(str)
</source>
</syntaxhighlight>
<source lang="mtmacro" line>
<syntaxhighlight lang="mtmacro" line>
upper(str, numChars)
upper(str, numChars)
</source>
</syntaxhighlight>


|examples=
|examples=
<source lang="mtmacro" line>
<syntaxhighlight lang="mtmacro" line>
[r: upper("this Is a Test")]
[r: upper("this Is a Test")]
[r: upper("this Is a Test", 1)]
[r: upper("this Is a Test", 1)]
</source>
</syntaxhighlight>
Returns  
Returns  
   THIS IS A TEST
   THIS IS A TEST

Latest revision as of 16:53, 14 March 2023

upper() Function

Introduced in version 1.3b48
Returns the upper case version of a string. If the number of characters is not specified then the whole string is converted to upper case.

Usage

upper(str)
upper(str, numChars)

Examples

[r: upper("this Is a Test")]
[r: upper("this Is a Test", 1)]

Returns

  THIS IS A TEST
This Is a Test