string.lower

Return a modified version of str where all uppercase characters have been converted to lowercase. Special characters and numbers are not affected.

ExamplePrint the user's input in all lowercase.
Read a line from the user, then print string in all lowercase.
Code
<nowiki>
print(string.lower(read()))
    </nowiki>
Output Depends on what the user wrote. For instance, if they were to enter Hello World, the string printed would be hello world.

string.lower
Function
Syntax
string.lower(
  • str : string
)
Colon notation: str:lower()

Returns string
API string
Source Lua (source)
This article is issued from Computercraft. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.