1 2 3 4 5 6 7 8 9
str = "FG" if(str ~= nil)then print(tonumber(str,16)); end if(tonumber(str,16) >= 0x0 and tonumber(str,16) <= 0xFF and str ~= nil)then print("Right area"); end
1 2 3 4 5
line 7: attempt to compare number with nil stack traceback: t.lua:7: in main chunk [C]: ? nil