[ create a new paste ] login | about

Link: http://codepad.org/36ZEoUrL    [ raw code | output | fork ]

Lua, pasted on Feb 17:
1
2
3
4
5
6
str = "FG"

print(tonumber(str,16));
if(tonumber(str,16) >= 0x0 and tonumber(str,16) <= 0xFF and str ~= nil)then
print("Right area");
end


Output:
1
2
3
4
5
line 4: attempt to compare number with nil
stack traceback:
	t.lua:4: in main chunk
	[C]: ?
nil


Create a new paste based on this one


Comments: