title: Lua "or" statement issue
body: <p>I'm very new to Lua, and I'm doing a very simple  text based adventure thing, but it wont work. My code is as follows: </p>
  
  <pre><code>while input ~= ("leave cave" or "leave") do
  print("What do you want to do?")
  input = io.read()
  
  if input == "inspect" then 
          print("You are in a cave") 
      elseif input == "leave cave" or "leave" then
          print("You leave the cave")
      elseif input == "inv" then
          for i,v in pairs(inv) do
          print(i, v)
      end
    else
      print("You didn't write a valid command...")
    end
  end
  
  -- leave cave
  
  input = ""
  print("What do you want to do?")
  input = io.read()
  while input ~= "follow path" do 
  if input == "inspect" then 
          print("You are at the base of a hill. There is a path.") 
      elseif input ==  "follow path" then
          print("You follow the path. There is a gate.") 
       elseif input == "inv" then
          for i,v in pairs(inv) do
          print(v)
          end
      else 
          print("That's not a valid command...")
      end 
  end
  </code></pre>
  
  <p>What I'm trying to do is have it so whenever the user types leave, or leave cave, it proceeds to the next segment (the path one), however, when I type "leave" and then type "inspect" again it says "I am in a cave" rather than what it should be saying which is saying that you left, and you see a path. And when I type leave cave, and then inspect, it spams "You are at the base of a hill. THERE IS A PATH" over and over, indefinitely.</p>
  
  <p>And when I type "inv" it doesn't print my inventory, and instead prints "You left the cave," but doesn't actually leave.</p>