Swaps if-statements that are joined by the else keyword.