Posted 13 July 2012 - 10:28 PM
I'm trying to make a commands with write() work however you type them.
Email
email
or even something like EmAiL
But have no clue how to do that. I'm assuming it involves string.lower. but whenever I try that it only works when I type the commands in lowercase.
name = "MacDaddy"
write("What would you like to do a the moment" .. name .. "? :")
Action = io.read()
if Action == string.lower("Email") then
–Blah blah blah
end
Note: this is just a sample to show you what I mean.
or even something like EmAiL
But have no clue how to do that. I'm assuming it involves string.lower. but whenever I try that it only works when I type the commands in lowercase.
name = "MacDaddy"
write("What would you like to do a the moment" .. name .. "? :")
Action = io.read()
if Action == string.lower("Email") then
–Blah blah blah
end
Note: this is just a sample to show you what I mean.