# Multiple currentframes

**URL:** <https://forum.kirupa.com/t/multiple-currentframes/65022>\
**Category:** Uncategorized\
**Created:** [September 22, 2004, 9:36am UTC](https://forum.kirupa.com/t/multiple-currentframes/65022 "2004-09-22T09:36:09Z")\
**Posts on this page:** 2\
**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/65022/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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 22, 2004, 9:54am UTC](https://forum.kirupa.com/t/multiple-currentframes/65022/2 "2004-09-22T09:54:01Z")

</div>

try

if (\_root.\_currentframe \>= 40 && \_root.\_currentframe \<= 138) { … }
