# Flow condition using local variable

**URL:** <https://forum.flowable.org/t/flow-condition-using-local-variable/6024>\
**Category:** Flowable Engine\
**Created:** [May 14, 2020, 10:57pm UTC](https://forum.flowable.org/t/flow-condition-using-local-variable/6024 "2020-05-14T22:57:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![abarazal](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/abarazal/32/1551_2.png) [@abarazal](https://forum.flowable.org/u/abarazal)\
**Post date:** [May 14, 2020, 10:57pm UTC](https://forum.flowable.org/t/flow-condition-using-local-variable/6024/1 "2020-05-14T22:57:55Z")

</div>

I’m trying to use a local variable in a flow condition, however it’s not working, and I had to use global variable instead. Is it possible to use local variables in flow conditions?

---

<div class="post-metadata">

**Author:** ![joram](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/joram/32/26_2.png) [@joram](https://forum.flowable.org/u/joram)\
**Post date:** [May 18, 2020, 8:38pm UTC](https://forum.flowable.org/t/flow-condition-using-local-variable/6024/2 "2020-05-18T20:38:28Z")

</div>

It should, yes. local variables get checked first, before checking the parent variables (and process instances on the highest level).

Can you give some more information about how you’re setting the variable and how your process looks like?

---

<div class="post-metadata">

**Author:** ![abarazal](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/abarazal/32/1551_2.png) [@abarazal](https://forum.flowable.org/u/abarazal)\
**Post date:** [May 21, 2020, 8:15pm UTC](https://forum.flowable.org/t/flow-condition-using-local-variable/6024/3 "2020-05-21T20:15:55Z")

</div>

Problem exists between my keyboard and chair…
