# Quick question on syntax

**URL:** <https://forum.kirupa.com/t/quick-question-on-syntax/149738>\
**Category:** flash\
**Created:** [May 31, 2005, 11:15pm UTC](https://forum.kirupa.com/t/quick-question-on-syntax/149738 "2005-05-31T23:15:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![logikal2](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/logikal2/32/1143_2.png) [@logikal2](https://forum.kirupa.com/u/logikal2)\
**Post date:** [May 31, 2005, 11:15pm UTC](https://forum.kirupa.com/t/quick-question-on-syntax/149738/1 "2005-05-31T23:15:40Z")

</div>

Hey guys:

Here’s the dilemna, I have a bunch of lines like the following:

```auto
c1.move();
c2.move();
c3.move();
c4.move();

```

Where c(1-4) are variables. I tried making a for() loop that simplifies everything:

```auto
for (temp = 1; temp < 5; temp++) {
	('c'+temp).move();
}

```

The problem is that I can’t get (‘c’+temp) to equal the variable named c1 (or c(2-4) for that matter). How do you do this?
