The command I used is execute @e[type=armor_stand,name=armorstandp2s2] ~ ~ ~ testfor @e[type=armor_stand,name=!armorstandp2s2,dx=1,dy=3,dz=1]
The circuit, from west to east, is as follows: impulse command block (the one with the command above), redstone comparator (facing west, compare mode), redstone wire, redstone wire, redstone repeater, impulse command block
When the testfor command detects two entities that match the target selector, the comparator emits a signal of strength 1 and doesn't reach the repeater.
Rollback Post to RevisionRollBack
If you follow your heart, it will only lead to your arteries.