@Blastoise You can reduce your code with AND. IF A==0 AND R==0 THEN: Sometimes I prefer nested IF statements though.