# Declaring variables with for loops?

**URL:** https://forum.kirupa.com/t/declaring-variables-with-for-loops/215072
**Category:** Uncategorized
**Created:** [February 3, 2007, 9:38pm UTC](https://forum.kirupa.com/t/declaring-variables-with-for-loops/215072 "2007-02-03T21:38:38Z")
**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: [February 3, 2007, 9:38pm UTC](https://forum.kirupa.com/t/declaring-variables-with-for-loops/215072/1 "2007-02-03T21:38:38Z")

</div>

```auto
function b0 () {
	trace("different action 1");
}
function b1 () {
	trace("different action 2");
}
for(i=0;i < 2; i++) {
	["b"+i+"()"];
}

```

How would that be done? Sorry, I already knew how to declare vars, had the wrong question & wrong title but this is my actual question now.

\*Nevermind, its solved :sigh:.
