Here let me explain you in simple code :
if (india_in_NSG) {
pakistan_will_try_too();
}
Now understand pakistan trying function is dependent on India_in_NSG condition, not the vice versa.
@Levina I hope this makes it clear
And I strongly believe operation pakistan_will_try_too(); will throw an Invalid Operation Exception..