# \[mx\] referencing an odd or even number

**URL:** <https://forum.kirupa.com/t/mx-referencing-an-odd-or-even-number/93921>\
**Category:** Uncategorized\
**Created:** [November 6, 2003, 10:58am UTC](https://forum.kirupa.com/t/mx-referencing-an-odd-or-even-number/93921 "2003-11-06T10:58:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![davymacca](https://avatars.discourse-cdn.com/v4/letter/d/5f8ce5/32.png) [@davymacca](https://forum.kirupa.com/u/davymacca)\
**Post date:** [November 6, 2003, 10:58am UTC](https://forum.kirupa.com/t/mx-referencing-an-odd-or-even-number/93921/1 "2003-11-06T10:58:23Z")

</div>

I am crating a roulette wheel dynamically. It has one movie clip for the numbers around the edge which it duplicates and positions correctly. My problem is that ever other number has a black background on it (on a real roulette wheel)

Is there a to distinguish between an odd number and an even number

Eg  
[SIZE=3][AS]  
if (i = odd )  
{  
number\_background = red  
}  
if (i = even )  
{  
number\_background = black  
}  
[/AS][/SIZE]

or something to that effect

Any help would be greatly appreciatedda:crazy:
