string/lower

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
m (Also menu state)
Line 1: Line 1:
 
{{Func
 
{{Func
 
|Description=Changes any upper-case letters in a string to lower-case letters.
 
|Description=Changes any upper-case letters in a string to lower-case letters.
|Realm=Shared
+
|Realm=Shared and Menu
 
|IsClass=No
 
|IsClass=No
 
|Name=lower
 
|Name=lower

Revision as of 22:34, 30 July 2016

 string.lower( )

Contents

Description

Changes any upper-case letters in a string to lower-case letters.

Arguments

string str

The string to convert.

Returns

string

A string representing the value of a string converted to lower-case.

Examples

Example

Demonstrates the use of this function.

print( string.lower( "ABCDEFG" ) )
print( string.lower( "AbCdefG" ) )
print( string.lower( "abcdefg" ) )
print( string.lower( "1234567890" ) )

Output:


abcdefg
abcdefg
abcdefg
1234567890
Personal tools
Navigation