# Evaluate using string operator?

**URL:** <https://forum.kirupa.com/t/evaluate-using-string-operator/279958>\
**Category:** flash\
**Created:** [January 21, 2009, 12:59am UTC](https://forum.kirupa.com/t/evaluate-using-string-operator/279958 "2009-01-21T00:59:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anogar](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@Anogar](https://forum.kirupa.com/u/Anogar)\
**Post date:** [January 21, 2009, 12:59am UTC](https://forum.kirupa.com/t/evaluate-using-string-operator/279958/1 "2009-01-21T00:59:56Z")

</div>

```auto

var operator:String = "*";

trace(10 operator 10); //returns 100, you get the idea...

```

The obvious solution is just a big fat switch / case statement based off the operator, but I’m curious if there is a more graceful way you could do it.
