# Enabled Property in Value Changed Script

**URL:** <https://forum.inductiveautomation.com/t/enabled-property-in-value-changed-script/100048>\
**Category:** Ignition\
**Created:** [December 19, 2024, 3:45pm UTC](https://forum.inductiveautomation.com/t/enabled-property-in-value-changed-script/100048 "2024-12-19T15:45:33Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [December 19, 2024, 4:19pm UTC](https://forum.inductiveautomation.com/t/enabled-property-in-value-changed-script/100048/4 "2024-12-19T16:19:16Z")

</div>

Are you trying to make a run hour-meter? (For how long the machine has been running since midnight?)

What version of Ignition?  
Do you have a database configured (which will make this much more reliable and useful)?

Tips:

- That's not a script. It's an expression.
- It's a good idea to post formatted code as well as a screengrab so we can copy and edit it. Please see [Wiki - how to post code on this forum](https://forum.inductiveautomation.com/t/wiki-how-to-post-code-on-this-forum/77831).

---

_[View the full topic](https://forum.inductiveautomation.com/t/enabled-property-in-value-changed-script/100048)._
