Swap if for ifCond