function frame() local x = 10 local y = 20 local result = x + y if result > 25 then gfx.clear(color.green) else gfx.clear(color.red) end end