I'm developing a plugin for Oxide 2. I've been learning from other plugins and I've noticed that some of them use null instead of nil. For example:
if args[1] == null then
Oxide 2 is written in C#, so I assume that null is defined in C# or in Lua Interface.
Is there any difference between them?
Update:
I've somewhere read that it can be used for check, if MySQL column is NULL. Is that true?
nilis a value in the Lua language.nullis a variable name. What value does it contain? You can easily check that. We cannot. If it turns out to benil, then usingnullis pointless, probably a mistake made by someone context switching between C# and Lua code which accidentally works because an undefined variable will evaluate tonil.