upper: Difference between revisions
Jump to navigation
Jump to search
(New page: ==Function upper== 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=== <source lang="mtm...) |
No edit summary |
||
(7 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
= | {{MacroFunction | ||
|name=upper | |||
|version=1.3b48 | |||
|description= | |||
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. | 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= | |||
< | <syntaxhighlight lang="mtmacro" line> | ||
upper(str) | |||
</syntaxhighlight> | |||
</ | <syntaxhighlight lang="mtmacro" line> | ||
upper(str, numChars) | |||
</syntaxhighlight> | |||
|examples= | |||
<syntaxhighlight lang="mtmacro" line> | |||
< | |||
[r: upper("this Is a Test")] | [r: upper("this Is a Test")] | ||
[r: | [r: upper("this Is a Test", 1)] | ||
</ | </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 23:59, 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 TESTThis Is a Test