Thread: Onupdate
View Single Post
08-25-13, 05:52 AM   #10
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Code:
if var then
... is not comparing "var" to anything at all, let alone to two things. Functionally, it achieves the same result as:

Code:
if var ~= nil and var ~= false then
... but it's not actually the same thing.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote