# Number increasement + actions to follow

**URL:** https://forum.kirupa.com/t/number-increasement-actions-to-follow/221420
**Category:** Uncategorized
**Created:** [April 4, 2007, 5:23am UTC](https://forum.kirupa.com/t/number-increasement-actions-to-follow/221420 "2007-04-04T05:23:48Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![chevron8653](https://avatars.discourse-cdn.com/v4/letter/c/6f9a4e/32.png) [@chevron8653](https://forum.kirupa.com/u/chevron8653)
#### Post date: [April 4, 2007, 5:23am UTC](https://forum.kirupa.com/t/number-increasement-actions-to-follow/221420/1 "2007-04-04T05:23:48Z")

</div>

hi there.  
second question in two days lol but this one should be simple for some.

well i was wondering how to make a movie clip play the same animation everytime a counter i have increases by 3.

coz i have this code.

```auto
if (_level0.tptminutes==3 && _global.Isdaed == 0) {
    _root.daedalus_mc.gotoAndPlay("_arriving");
}

```

and it works when the number == 3 but i am wanting it to do it everytime the tptminutes number has been increased by 3. im not sure of the operator to use for that. ive tried += but that just the adding one but im after how to make it detect every time the tptminutes has increased by 3.

thanks in advanced.
