What is nan in terms of Lua? Does it equate to nil? If so why doesn’t this code work:
[lua]g.alive = function( event )
print(“Am I Alive”, g.status)
if not g.status then
print(“error”)
g.status = true
end
end
Runtime:addEventListener(“enterFrame”, g.alive)[/lua]
When there is an erroneous call to g.alive in which g.alive is nil it should be set to true, right? But all I get is Am I Alive nan [import]uid: 54716 topic_id: 17034 reply_id: 317034[/import]