I was building a contraption that i had testfor commands in. I powered it and the comparator was turned on. Behind the comparator i had a command that used setblock to set the command block to the same command(Just so the comparator should turn off.) But when the power that went into the command block got unpowered, the comparator turned on for some reason. I know this is proberly because it was a different command block. But it should only power the command block WHEN it gets powered.
Related issues
Attachments
Comments

Please provide screenshots of your setup and list used commands.
The pictures:
The first is just an overview of the contraption
The second is just the testfor command
The third is a command that clone the command block on the top, to where the testfor command block is.
The forth is just what the command block on the top is saying.
If i power the command block the comparator will turn on, and when I cut the power off, it will be powered again.