Posted 25 May 2013 - 01:27 PM
I'm working on a calculator where, currently, you have two options: Add and Subtract.
The add program is working, but when I type Subtract, subtract, or sub , it runs the add program, help :(/>
option = read()
if option == "Add" or "add" then
shell.run("add")
elseif option == "Subtract" or "subtract" or "sub" then
shell.run("sub")
else
print("ERROR UNKNOWN PROGRAM!")
end
The add program is working, but when I type Subtract, subtract, or sub , it runs the add program, help :(/>