# React on variable change, except “Empty”

**URL:** <https://community.homey.app/t/react-on-variable-change-except-empty/8608>\
**Category:** Questions & Help\
**Created:** [February 3, 2019, 5:01pm UTC](https://community.homey.app/t/react-on-variable-change-except-empty/8608 "2019-02-03T17:01:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon78407409](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@anon78407409](https://community.homey.app/u/anon78407409)\
**Post date:** [February 3, 2019, 5:01pm UTC](https://community.homey.app/t/react-on-variable-change-except-empty/8608/1 "2019-02-03T17:01:13Z")

</div>

Hi!  
I’m trying to make a flow that starts Kodi when a variable (with the movie name) is changed.  
But I also need to reset it somehow, so the same movie can get triggered again. But changing the variable would then of course restart the flow…

I know the current example won’t work, but basically I want to check if Harmony-Activity is On, and if not turn on and then start Movie. But I also want to make sure it doesn’t try to start with a variable that isn’t a movie (Empty).

How can I do this? (Btw notice “doet not contain”)

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/7/76191e00a9b46ad097de0307100d4f69b98be9ad.jpeg) ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/9/98ea469618a6f456d82e7c3a8a96b0e11e0a7efd.jpeg) ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/5/5285608350f192f54725529da91f584f43424ed3.jpeg)

---

<div class="post-metadata">

**Author:** ![anon78407409](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@anon78407409](https://community.homey.app/u/anon78407409)\
**Post date:** [February 3, 2019, 5:10pm UTC](https://community.homey.app/t/react-on-variable-change-except-empty/8608/2 "2019-02-03T17:10:07Z")

</div>

I’ll need to break up the “then/else” to start another flow I guess, and do a new check there for activity Kodi started or not.
