View Single Post
08-02-13, 05:01 PM   #15
myrroddin
A Pyroguard Emberseer
 
myrroddin's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 1,240
Semlar, that is what I thought. It would return true if var was equal to 1 or 2 or 3. You shouldn't have to keep checking if var, if var, if var... That seems overly verbose.

The reason I asked is because with two choices, it works fine.
Lua Code:
  1. -- would be true for 1 or 2
  2. if var == 1 or 2 then
  3.  
  4. -- so why can't it work the same way for more than two choices?
  5. if var == 1 or 2 or 3

Last edited by myrroddin : 08-02-13 at 05:04 PM.
  Reply With Quote