Lua Programming/How to Lua/case sensitivity

The lua interpreter is case sensitive. This means that identifier names containing lowercase letters will be treated as being different and separate from those containing uppercase letters:

-- These variables are all different
dog = "Benjamin"
Dog = "Samba"
DOG = "Bernie"
print ("The dogs are named " .. dog .. ", " .. Dog .. ", and " .. DOG)

Converting StringsEdit

The lua interpreter provides the following functions for converting strings to uppercase or to lowercase:

Last modified on 6 February 2011, at 14:10