in the script
local function checkev(i, x, y, n, nt)
if sim.partProperty(i, sim.FIELD_TEMP) >= 373 then
if math.random(1,2) = 1 then
sim.partChangeType(i, elem.MYMOD_PT_DIRT)
else then
sim.partChangeType(n, elem.DEFAULT_PT_WTRV)
end
end
end
elem.property(mud, "Update", checkev)
it says it wants a then statment near the = when we choose the random number
could someone please tell me what is wrong (I have all the element defined)