I plan ahead and then often can’t bring myself to do the plan because of some kind of executive dysfunction so I’m good at improvising too. It got really bad for a while I remember I couldn’t get into the shower before a long road trip so I just cried in the bathroom and eventually got in there but it made me leave a day later.
I’m getting better at it, but it still flares up when a big plan gets roadblocked by me.
If B then A is the same as if X then Y is the same as if A then B. They are saying it’s the same as the OP. Changing the letters around doesn’t change the meaning since the letters are just placeholders.
Now if you said If A then B AND If B then A as one it wouldn’t be the same because A and B would have to keep the same meaning.