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