# Eval usage on the left of equals

**URL:** <https://forum.kirupa.com/t/eval-usage-on-the-left-of-equals/221139>\
**Category:** Uncategorized\
**Created:** [April 1, 2007, 10:03pm UTC](https://forum.kirupa.com/t/eval-usage-on-the-left-of-equals/221139 "2007-04-01T22:03:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jbailey](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/jbailey/32/2380_2.png) [@jbailey](https://forum.kirupa.com/u/jbailey)\
**Post date:** [April 1, 2007, 10:03pm UTC](https://forum.kirupa.com/t/eval-usage-on-the-left-of-equals/221139/1 "2007-04-01T22:03:49Z")

</div>

Here’s the deal: I’m sick of writing long scripts or being locked in certain cases to not being able to use dynamic features because I don’t know how to use things like eval on the left side of the equals

Here’s an example

```auto
base.mitem1y = mitem1._y
base.mitem2y = mitem2._y
base.mitem3y = mitem3._y

```

etc.

This should be in a for statement. However, I get errors (as I should) if I try using something like

```auto
base.eval("mitem"+i) = eval("mitem"+i)._y

```

Any nudges in the right direction is much appreciated!
