# Every 20 a var goes up by, another goes down by 1

**URL:** <https://forum.kirupa.com/t/every-20-a-var-goes-up-by-another-goes-down-by-1/233248>\
**Category:** Uncategorized\
**Created:** [July 21, 2007, 11:15pm UTC](https://forum.kirupa.com/t/every-20-a-var-goes-up-by-another-goes-down-by-1/233248 "2007-07-21T23:15:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![REEF](https://avatars.discourse-cdn.com/v4/letter/r/ce73a5/32.png) [@REEF](https://forum.kirupa.com/u/REEF)\
**Post date:** [July 21, 2007, 11:15pm UTC](https://forum.kirupa.com/t/every-20-a-var-goes-up-by-another-goes-down-by-1/233248/1 "2007-07-21T23:15:36Z")

</div>

how can the follwing be done in actionscript? when a goes up by 20, b goes up by 1, or when a goes down by 20, b goes down by 1…a little confused here.

a - b  
0 - 0

20 - 1

40 - 2

60 - 3

…

280 - 14
