Programmer Guide/Command Reference/LOWER: Difference between revisions

From STX Wiki
Jump to navigationJump to search
m (1 revision: Initial import)
No edit summary
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{DISPLAYTITLE:{{SUBPAGENAME}}}}
{{DISPLAYTITLE:{{SUBPAGENAME}}}}
==LOWER==
{{PG_StringCommands}}
<var>var</var> := LOWER <var>string</var>
The {{STx}} command <code>LOWER</code> converts its string argument to lower case. Note that this command, effectively superseding the concept of [http://en.wikipedia.org/wiki/Orthogonality#Computer_science orthogonality in programming], will only process its ''first'' argument. Any further arguments will be silently discarded, not even causing an error message to be emitted or a return code to be set.


<code>var := LOWER string</code>
See also [[Programmer_Guide/Command_Reference/UPPER|<code>UPPER</code>]] and [[Programmer_Guide/Command_Reference/TRANSLATE|<code>TRANSLATE</code>]].


-> var = 'convertedstring' (lower case characters only)
== Examples ==


Convert string to lower case characters.
#a := LOWER One!              // #a will be set to "one!"
#b := LOWER One! two threeish  // #b will ''also'' be set to "one!"

Latest revision as of 11:20, 4 March 2016

var := LOWER string

The STx command LOWER converts its string argument to lower case. Note that this command, effectively superseding the concept of orthogonality in programming, will only process its first argument. Any further arguments will be silently discarded, not even causing an error message to be emitted or a return code to be set.

See also UPPER and TRANSLATE.

Examples

#a := LOWER One!               // #a will be set to "one!"
#b := LOWER One! two threeish  // #b will also be set to "one!"

Navigation menu

Personal tools