# How do I make an "if" statement out of this?

**URL:** <https://forum.kirupa.com/t/how-do-i-make-an-if-statement-out-of-this/175936>\
**Category:** flash\
**Created:** [January 18, 2006, 11:19pm UTC](https://forum.kirupa.com/t/how-do-i-make-an-if-statement-out-of-this/175936 "2006-01-18T23:19:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lariat1997](https://avatars.discourse-cdn.com/v4/letter/l/df705f/32.png) [@lariat1997](https://forum.kirupa.com/u/lariat1997)\
**Post date:** [January 18, 2006, 11:19pm UTC](https://forum.kirupa.com/t/how-do-i-make-an-if-statement-out-of-this/175936/1 "2006-01-18T23:19:04Z")

</div>

this.powerUp\_btn.onPress = function(){  
xyz\_mc.gotoAndPlay(powerUpFrame);  
}  
this.rotate360\_btn.onPress = function(){  
xyz\_mc.gotoAndPlay(rotate360Frame);  
}  
this.turnAround\_btn.onPress = function(){  
xyz\_mc.gotoAndPlay(turnAroundFrame);  
}
