# Create variables

**URL:** <https://community.homey.app/t/create-variables/119084>\
**Category:** Flows\
**Tags:** homey-pro\
**Created:** [October 27, 2024, 10:55am UTC](https://community.homey.app/t/create-variables/119084 "2024-10-27T10:55:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Agamemnond](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/agamemnond/32/117170_2.png) [@Agamemnond](https://community.homey.app/u/Agamemnond)\
**Post date:** [October 27, 2024, 10:55am UTC](https://community.homey.app/t/create-variables/119084/1 "2024-10-27T10:55:34Z")

</div>

Hi,

How do I create the variable “if the price is between 0,1-0,5” ?

---

<div class="post-metadata">

**Author:** ![JPe4619](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jpe4619/32/9017_2.png) [@JPe4619](https://community.homey.app/u/JPe4619)\
**Post date:** [October 27, 2024, 12:45pm UTC](https://community.homey.app/t/create-variables/119084/2 "2024-10-27T12:45:29Z")

</div>

You can create a variable in the Flow editor, it must be created before you can use it in your flow (not during runtime in a flow).  
Yo can change the value of a variable via flow.  
[https://support.homey.app/hc/en-us/categories/4410185066514-Flow](https://support.homey.app/hc/en-us/categories/4410185066514-Flow)

---

<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:** [October 27, 2024, 4:52pm UTC](https://community.homey.app/t/create-variables/119084/3 "2024-10-27T16:52:49Z")

</div>

When I get your Q right,  
AFAIK there is no “value is between x and y” logic card, only if an app provides for it.

Using logics cards, you can do this:  
When…  
-price changes  
And…  
-logic card [price tag value] is greater than 0.1  
-logic card [price tag value] is less than 0.5  
Then…  
-do something

_both And cards have to be true, so only values between 0.1 and 0.5 make the flow continue_

You can find the price tag value like this

> ![1000036779](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/6/767145752017ff9171544eb36d797f1b96547ccd.jpeg)

> ![1000036781](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/1/e101be842c9f3ced93f57b7438596a2de9e0aeb4.jpeg)
