# Multiple currentframes

**URL:** <https://forum.kirupa.com/t/multiple-currentframes/123293>\
**Category:** Uncategorized\
**Created:** [September 22, 2004, 9:36am UTC](https://forum.kirupa.com/t/multiple-currentframes/123293 "2004-09-22T09:36:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![theHollow](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/thehollow/32/106_2.png) [@theHollow](https://forum.kirupa.com/u/theHollow)\
**Post date:** [September 22, 2004, 9:36am UTC](https://forum.kirupa.com/t/multiple-currentframes/123293/1 "2004-09-22T09:36:09Z")

</div>

im using the following code on a button in a movieclip:

if (\_root.\_currentframe == 84) {  
trace (“true”);  
} else {  
trace (“false”);  
}

but i want it to test if the current frame is anyframe between 40 and 138.  
i tried, 40 or 41 or 42 and so on… but that didnt work. can anybody help?

Thnx,  
Brendan Smith
