If/else statement

Hi- I’m trying to write an if/else statement for a mc button that says if mc is on stage don’t attach it, else attach it. Is there anyone that could help?

Thanks in advance,

neonreel