local testpos=POS(-5716,2,-3919) local chn="out" local newstate=nil if event.type=="punch" then if is_passive(testpos) then if newstate==nil then digiline_send(chn," true\n "..getstate(testpos)) else digiline_send(chn," true\n "..getstate(testpos).."\n "..newstate) setstate(testpos,newstate) end else digiline_send(chn," false") end end