Swap conditional logic