I did a lot of searching around to find how to make an if statement with multiple clauses I'm trying to do something like this:
I'm trying to do this in lua but can't find the correct language. I've also tried nesting them like this:
But, i must have it out of order because that doesn't work either. Thanks in advance guys.
if x = 0 and y = 0 and z = 0 then
Do_Stuff()
else
Do_Stuff()
Do_Other_Stuff()
end
I'm trying to do this in lua but can't find the correct language. I've also tried nesting them like this:
if x = 0 then
if y = 0 then
if z = 0 then
Do_Stuff()
else
else
else
Do_Stuff()
Do_Other_Stuff()
end
end
end
But, i must have it out of order because that doesn't work either. Thanks in advance guys.