swaps conditions for logic tags