# Script seems to run both if and else statements

**URL:** <https://forum.inductiveautomation.com/t/script-seems-to-run-both-if-and-else-statements/99541>\
**Category:** Ignition\
**Tags:** vision, scripting\
**Created:** [December 6, 2024, 6:57pm UTC](https://forum.inductiveautomation.com/t/script-seems-to-run-both-if-and-else-statements/99541 "2024-12-06T18:57:06Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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 6, 2024, 7:09pm UTC](https://forum.inductiveautomation.com/t/script-seems-to-run-both-if-and-else-statements/99541/2 "2024-12-06T19:09:59Z")

</div>

Hi, Daniel, and welcome to the forum.

Please see [Wiki - how to post code on this forum](https://forum.inductiveautomation.com/t/wiki-how-to-post-code-on-this-forum/77831). Post the screengrab too, if you think that context will help.

---

_[View the full topic](https://forum.inductiveautomation.com/t/script-seems-to-run-both-if-and-else-statements/99541)._
