How do I check if a value is NaN?

I’ve tried everything, like
if not value
and
if tonumber(value)
but it never seems to work. Does anyone have a solution?

4 Likes

Try this:
if value ~= value
Source of this answer:

25 Likes

Yeah this worked, thank you!

filler text for the character limit

4 Likes