swap_if function

Swap values of two columns based on a condition