# Engineering Units, Expression or Script

**URL:** <https://forum.inductiveautomation.com/t/engineering-units-expression-or-script/68864>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [January 20, 2023, 7:35pm UTC](https://forum.inductiveautomation.com/t/engineering-units-expression-or-script/68864 "2023-01-20T19:35:28Z")\
**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:** [January 20, 2023, 7:35pm UTC](https://forum.inductiveautomation.com/t/engineering-units-expression-or-script/68864/1 "2023-01-20T19:35:28Z")

</div>

Is it possible to create an expression to be able to change the "Engineering Units" value depending on the return value of the tag that is part of?  
For example if a tag labeled "Unit Status" has a value of 0, can the engineering units value show "off", but if the value is 1, then change the "Engineering Units" value to Running, and have that value change depending on the return value of the tag.

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:** [January 20, 2023, 7:46pm UTC](https://forum.inductiveautomation.com/t/engineering-units-expression-or-script/68864/2 "2023-01-20T19:46:35Z")

</div>

It might be possible, but I would not use this method. Why not use a derived tag with your state enumerations, if you want to refer to the "friendly" name instead of the process value?

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [January 21, 2023, 9:33am UTC](https://forum.inductiveautomation.com/t/engineering-units-expression-or-script/68864/3 "2023-01-21T09:33:28Z")

</div>

> [@paul-griffith](#):
>
> Why not use a derived tag with your state enumerations

Ha, I've always used an expression tag, but a derived tag makes sense. Do you know if there's any difference in performance between the two? (consider the situation there are 1000s of these)

---

<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:** [January 22, 2023, 7:33pm UTC](https://forum.inductiveautomation.com/t/engineering-units-expression-or-script/68864/4 "2023-01-22T19:33:13Z")

</div>

I'm pretty sure the overhead is exactly the same, since it's still evaluating an expression. A bonus of a reference tag is that it _could_ support writeback, though this is a pretty flimsy case for that.
