# H.O.O.P if/else does not run

**URL:** <https://community.homey.app/t/h-o-o-p-if-else-does-not-run/48151>\
**Category:** Questions & Help\
**Created:** [June 6, 2021, 7:41am UTC](https://community.homey.app/t/h-o-o-p-if-else-does-not-run/48151 "2021-06-06T07:41:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Edgar](https://avatars.discourse-cdn.com/v4/letter/e/b487fb/32.png) [@Edgar](https://community.homey.app/u/Edgar)\
**Post date:** [June 6, 2021, 7:41am UTC](https://community.homey.app/t/h-o-o-p-if-else-does-not-run/48151/1 "2021-06-06T07:41:26Z")

</div>

I am wondering why this flow doesn’t run. Meaning; when the lx change, it wont update the variable. I know that H.O.O.P is pretty advanced but as far as i believe, the flow is correct, right?

what i want to do is to determine if the light in the hallway is needed or not, and how bright it has to be.

what might be wrong?

---

<div class="post-metadata">

**Author:** ![Dijker](https://avatars.discourse-cdn.com/v4/letter/d/b9bd4f/32.png) [@Dijker](https://community.homey.app/u/Dijker)\
**Post date:** [June 6, 2021, 8:42am UTC](https://community.homey.app/t/h-o-o-p-if-else-does-not-run/48151/2 "2021-06-06T08:42:12Z")

</div>

Guess best to ask this in the support threat here: H.O.O.P. (Hope) - Examples  
there the developer and other H.o.o.P. users wil be notified and probably faster respond then creating a new thread.

---

<div class="post-metadata">

**Author:** ![Edgar](https://avatars.discourse-cdn.com/v4/letter/e/b487fb/32.png) [@Edgar](https://community.homey.app/u/Edgar)\
**Post date:** [June 6, 2021, 8:47am UTC](https://community.homey.app/t/h-o-o-p-if-else-does-not-run/48151/3 "2021-06-06T08:47:13Z")

</div>

hummm oke… coz it is an example topic, i didn’t thought it was for issues… but i placed it there… thnx.

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [June 6, 2021, 12:22pm UTC](https://community.homey.app/t/h-o-o-p-if-else-does-not-run/48151/4 "2021-06-06T12:22:43Z")

</div>

Indeed. There are 2 HOOP topics. This is the discussion topic [H.O.O.P. (Hope) - Homey Object Oriented Programming](https://community.homey.app/t/h-o-o-p-hope-homey-object-oriented-programming/43709)
