Hello I got this piece of script that im trying to get working... i want is when sensor A detects movement AND sensor B(IN THIS ORDER A FIRST THEN B SECOND) then it going to plus 1... and then also vice versa to minus 1... So this is what my code looks like... Once (GetLightingState("A")=ON) AND (GetLightingState("B") THEN Begin Trigger := Trigger +1; End; Once Once (GetLightingState("B")=ON) AND (GetLightingState("A") THEN Begin Trigger := Trigger -1; End; I know the counter is working, but i dont know how to get to logic to look at A first then at B, and then at B then at A... Thanks You