What is the variable that I can use to

What is the variable that I can use to:

I have MYVARIABLE, and I need that "IF MYVARIABLE=0 Playback sound “OFF”; IF MYVARIABLE =1 Playback sound “ON”.