# Variable in flows

**URL:** <https://community.homey.app/t/variable-in-flows/126806>\
**Category:** Questions & Help\
**Tags:** homey-pro, advancedflow\
**Created:** [January 6, 2025, 7:54pm UTC](https://community.homey.app/t/variable-in-flows/126806 "2025-01-06T19:54:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Henrik\_Alexanderson](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/henrik_alexanderson/32/122441_2.png) [@Henrik\_Alexanderson](https://community.homey.app/u/Henrik_Alexanderson)\
**Post date:** [January 6, 2025, 7:54pm UTC](https://community.homey.app/t/variable-in-flows/126806/1 "2025-01-06T19:54:01Z")

</div>

I have a script where I change a bool Variable. I can see the Variable changing in the script but when I use it in advanced flow it always return the default value (false). Looks like the value on the Variable is not transfered from the script?

---

<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:** [January 6, 2025, 8:06pm UTC](https://community.homey.app/t/variable-in-flows/126806/2 "2025-01-06T20:06:13Z")

</div>

If you don’t have a specific reason to use variables, just use Homeyscript tags. Which can also be used in flows.  
This is so much easier and straightforward:

> ![1000040821](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/5/c53277d4de96f25f32ab16c657131fb312f57eba.jpeg)
