string.lower
From GMod Wiki
| Function | |
| Syntax |
string.lower( String string ) Where is this used? |
| Description: | |
| Lowers the case of all letters in a string | |
| Returns: | String |
| Part of Library: | String |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=String.lower]String.lower [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Example
| Description | Makes the string lowercase. |
|---|---|
| Used on | |
| Code | local astring = "some sTrInG" astring = string.lower(astring) Msg(astring) |
| Output | some string |
Additional Notes
- Useful for checking user input.
- Doesn't work with latin symbols (russian etc.)