Can I give a condition When the mission is interrupted, return to the same point of interruption, not again

Can I give a condition or an order in a particular matter so that it is my word?
When A is executed and cannot be executed, go to B, and when you finish B, go back to the point they stopped at A, is that possible?

Hi @feras_assaf
is A , B are process or activities ?

Nived N