This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
gheotic's profile picture

if multiple choice (need help)

Started by gheotic, 20 January 2013 - 04:28 AM
gheotic #1
Posted 20 January 2013 - 05:28 AM
I have been wondering if there is a way to do something like this:
If x == Name & Name2 then

instead of something like this:
if x == Name then
blablabla….
elseif x == Name2 then
end

if it possible to have it on 1 line?


any help would any appreciated? :)/>
TheOddByte #2
Posted 20 January 2013 - 05:51 AM
You could do Like this

if x == Name or x == Name2 then
--Do Something
end