Hello,
So I have a part of code that looks like this:
if particle.scale then
particleEffect:scale(particle.scale)
end
And I’ve recently received an error:
[…]\classes\FightView.lua:123: bad argument #2 to ‘scale’ (number expected, got no value)
So here’s my question - how can check if variable has a value (looks like the "if particle.scale […]" check doesn’t work) and what’s the difference between “no value” and “nil” in LUA?