# One statement for multiple

**URL:** <https://forum.kirupa.com/t/one-statement-for-multiple/320642>\
**Category:** flash\
**Created:** [March 29, 2011, 9:45am UTC](https://forum.kirupa.com/t/one-statement-for-multiple/320642 "2011-03-29T09:45:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![12abhi12](https://avatars.discourse-cdn.com/v4/letter/1/9f8e36/32.png) [@12abhi12](https://forum.kirupa.com/u/12abhi12)\
**Post date:** [March 29, 2011, 9:45am UTC](https://forum.kirupa.com/t/one-statement-for-multiple/320642/1 "2011-03-29T09:45:05Z")

</div>

I have a code with statements like this

```auto

mc1.onRelease= mcfunction
mc2.onRelease= mcfunction
mc3.onRelease= mcfunction
mc4.onRelease= mcfunction
mc5.onRelease= mcfunction
mc6.onRelease= mcfunction
mc7.onRelease= mcfunction
mc8.onRelease= mcfunction
mc9.onRelease= mcfunction

```

Is there a way to cut down the number of statements in this case?
