# \[AS 3.0\] Testing for even and uneven values

**URL:** <https://forum.kirupa.com/t/as-3-0-testing-for-even-and-uneven-values/253876>\
**Category:** flash\
**Created:** [March 5, 2008, 11:28pm UTC](https://forum.kirupa.com/t/as-3-0-testing-for-even-and-uneven-values/253876 "2008-03-05T23:28:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ariff](https://avatars.discourse-cdn.com/v4/letter/a/7c8e57/32.png) [@Ariff](https://forum.kirupa.com/u/Ariff)\
**Post date:** [March 5, 2008, 11:28pm UTC](https://forum.kirupa.com/t/as-3-0-testing-for-even-and-uneven-values/253876/1 "2008-03-05T23:28:01Z")

</div>

Hi,

this has probably got a very simple solution, but i cant seem to find it…

```auto
 
var i:int = 10;
 
for ( var z:int = 0; z <= i; z++)
{
if ( z = uneven )
{
do this
}
if ( z = even )
{
do this
}
}

```

anyone got a quick solution for this ?

kind regards,  
Ariff
