# Multiple conditions in a FOR loop ... possible?

**URL:** <https://forum.kirupa.com/t/multiple-conditions-in-a-for-loop-possible/307587>\
**Category:** flash\
**Created:** [April 6, 2010, 12:23pm UTC](https://forum.kirupa.com/t/multiple-conditions-in-a-for-loop-possible/307587 "2010-04-06T12:23:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![FunkMaster\_J](https://avatars.discourse-cdn.com/v4/letter/f/9e8a1a/32.png) [@FunkMaster\_J](https://forum.kirupa.com/u/FunkMaster_J)\
**Post date:** [April 6, 2010, 12:23pm UTC](https://forum.kirupa.com/t/multiple-conditions-in-a-for-loop-possible/307587/1 "2010-04-06T12:23:47Z")

</div>

Is it possible to have multiple conditions within a FOR loop ?

e.g.

```auto
 
for (var i:Number = 0; (i < anArray.length & aBoolean = false); i++) {
     trace("woah, this worked!");
}

```

So the loop carrys on as long as ‘i’ doesnt exceed the length of the array AND a boolean remains false.
