# Quick actionscript 3.0 tip please

**URL:** <https://forum.kirupa.com/t/quick-actionscript-3-0-tip-please/294818>\
**Category:** Uncategorized\
**Created:** [August 20, 2009, 9:17am UTC](https://forum.kirupa.com/t/quick-actionscript-3-0-tip-please/294818 "2009-08-20T09:17:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![asest](https://avatars.discourse-cdn.com/v4/letter/a/ce73a5/32.png) [@asest](https://forum.kirupa.com/u/asest)\
**Post date:** [August 20, 2009, 9:17am UTC](https://forum.kirupa.com/t/quick-actionscript-3-0-tip-please/294818/1 "2009-08-20T09:17:40Z")

</div>

Quick way to write the following code please (i know it’s simple - i just don’t know how)

if (images.currentFrame == 24 || images.currentFrame == 25 || images.currentFrame == 26|| images.currentFrame == 27|| images.currentFrame == 28|| images.currentFrame == 29)  
{  
images.gotoAndPlay(“175”);  
}

basically; if the MC frame number is between 24 and 29 (greater than 24 but less than 29) i want it to gotoandplay from a different frame.

Thank You  
😉
