# Valve State Control with Boolean

**URL:** <https://forum.inductiveautomation.com/t/valve-state-control-with-boolean/99727>\
**Category:** Ignition\
**Tags:** perspective, scripting, python\
**Created:** [December 12, 2024, 4:14am UTC](https://forum.inductiveautomation.com/t/valve-state-control-with-boolean/99727 "2024-12-12T04:14:48Z")\
**Posts on this page:** 1\
**Showing post:** 6

<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 12, 2024, 5:37pm UTC](https://forum.inductiveautomation.com/t/valve-state-control-with-boolean/99727/6 "2024-12-12T17:37:55Z")

</div>

As explained, you shouldn't use scripts (or runScript from an expression) if you can do the job directly with an expression.

Please see [Wiki - how to post code on this forum](https://forum.inductiveautomation.com/t/wiki-how-to-post-code-on-this-forum/77831). (You have a typo in your code, 'vavle'.)

---

_[View the full topic](https://forum.inductiveautomation.com/t/valve-state-control-with-boolean/99727)._
