# Variables in Expression Language

**URL:** <https://forum.inductiveautomation.com/t/variables-in-expression-language/67154>\
**Category:** Ignition\
**Created:** [December 1, 2022, 4:53pm UTC](https://forum.inductiveautomation.com/t/variables-in-expression-language/67154 "2022-12-01T16:53:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raymundo\_Villa](https://avatars.discourse-cdn.com/v4/letter/r/b77776/32.png) [@Raymundo\_Villa](https://forum.inductiveautomation.com/u/Raymundo_Villa)\
**Post date:** [December 1, 2022, 4:53pm UTC](https://forum.inductiveautomation.com/t/variables-in-expression-language/67154/1 "2022-12-01T16:53:13Z")

</div>

I am needing to know if in the "Expression" language of Ignition, can you create variables that will only be use in that expression.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [December 1, 2022, 4:54pm UTC](https://forum.inductiveautomation.com/t/variables-in-expression-language/67154/2 "2022-12-01T16:54:55Z")

</div>

No.

The best thing to do to refactor a complicated expression is to introduce additional custom properties as intermediate steps, to simplify the final expression.

---

<div class="post-metadata">

**Author:** ![Raymundo\_Villa](https://avatars.discourse-cdn.com/v4/letter/r/b77776/32.png) [@Raymundo\_Villa](https://forum.inductiveautomation.com/u/Raymundo_Villa)\
**Post date:** [December 1, 2022, 7:46pm UTC](https://forum.inductiveautomation.com/t/variables-in-expression-language/67154/4 "2022-12-01T19:46:10Z")

</div>

Thank you for the prompt response, now would you mind elaborating on how to use those custom properties or do you have an example I could look over to better understand what you are saying.

thanks.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [December 1, 2022, 8:02pm UTC](https://forum.inductiveautomation.com/t/variables-in-expression-language/67154/5 "2022-12-01T20:02:41Z")

</div>

What context are you authoring these expressions in? Vision, Perspective, somewhere else?
