it is behind a Substitute, but the substitute breaks from the attack?
No, the target will not switch if it is behind a sub, only roar and whirlwind can switch opponents who are behind subs.