# Simple code HELP

**URL:** <https://forum.kirupa.com/t/simple-code-help/202317>\
**Category:** Uncategorized\
**Created:** [September 29, 2006, 4:24pm UTC](https://forum.kirupa.com/t/simple-code-help/202317 "2006-09-29T16:24:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vanzellini](https://avatars.discourse-cdn.com/v4/letter/v/f08c70/32.png) [@vanzellini](https://forum.kirupa.com/u/vanzellini)\
**Post date:** [September 29, 2006, 4:24pm UTC](https://forum.kirupa.com/t/simple-code-help/202317/1 "2006-09-29T16:24:55Z")

</div>

Ok, for some reason I can’t do what it seems to be simple, this is the case, I have a button and I want that on release the button check if the frame of a movie clip IS NOT 2 execute an action, I think I am doing something wrong but I cant get it. this is the code:

```auto

on (release) {
    if(_root.sceneHolder_mc.contHolder_mc != (2)){
    _root.sceneHolder_mc.gotoAndPlay("s1");
    _root.sceneHolder_mc.contHolder_mc.gotoAndStop(2);
}

}

```

For Some reason when I press the button it goes to contHolder, frame 2, but when I press again it does not check and it execute again (not checking that if is telling it to dont do anything is is on frame 2)

please Help :jail:
