var.xx return a string, when do comparing with a number in lua will lead error, so I changed the return as :
return tonumber(GetVariable (name) ) or GetVariable (name)
in var.lua and fixed the issue.
return tonumber(GetVariable (name) ) or GetVariable (name)
in var.lua and fixed the issue.