I don’t understand how I can set a value month to 1 and my first print statement shows 1 and then my third print statement shows the value as nil
local yr = tonumber(_G[“yr”])
if tonumber(_G[“mo”]) == nil then
local month = 1
print("i am here month "…tostring(month))
else
local month = tonumber(_G[“mo”])
end
if tonumber(_G[“da”]) == nil then
local day = 1
print("i am here "…tostring(day))
else
local day = tonumber(_G[“da”])
end
if yr < 1583 then
local g = 0
else
local g = 1
end
local d1 = day
local f = - .5
local j = 0
print("month is "…tostring(month))
j = month
Any ideas? [import]uid: 136344 topic_id: 26395 reply_id: 326395[/import]