# Multiples of counter

**URL:** https://forum.kirupa.com/t/multiples-of-counter/130113
**Category:** Uncategorized
**Created:** [December 1, 2004, 4:59pm UTC](https://forum.kirupa.com/t/multiples-of-counter/130113 "2004-12-01T16:59:43Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![frost\_oni](https://avatars.discourse-cdn.com/v4/letter/f/94ad74/32.png) [@frost\_oni](https://forum.kirupa.com/u/frost_oni)
#### Post date: [December 1, 2004, 4:59pm UTC](https://forum.kirupa.com/t/multiples-of-counter/130113/1 "2004-12-01T16:59:43Z")

</div>

hello. i am trying to learn flash for my lectures, but i got stuck somewhere and was hoping that someone could help; how can make a counter that increments only for multiples of say, only 500 [i.e 500, 1000, 1500, 2000, 2500…]. that’s the cod ei use, but it’s no good;

```auto
 
 if (score == 500 || score == 1000 || score == 1500 || score == 2000 || score == 2500 || score == 3000 || score == 3500 || score == 4000) {
  shield++;
  maxAst++;
 }

```

any help, please?
