# Help with Ja Nee variabele

**URL:** <https://community.homey.app/t/help-with-ja-nee-variabele/120324>\
**Category:** Flows\
**Created:** [November 11, 2024, 9:06pm UTC](https://community.homey.app/t/help-with-ja-nee-variabele/120324 "2024-11-11T21:06:10Z")\
**Posts on this page:** 1\
**Showing post:** 20

<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:** [November 17, 2024, 12:39am UTC](https://community.homey.app/t/help-with-ja-nee-variabele/120324/20 "2024-11-17T00:39:43Z")

</div>

> [@W\_Wassink](#):
>
> ik zoek een mogelijkheid om een tweede tag te koppelen aan het kaartje voer script uit met argument

Een tweede tag?  
In het argument veld kun je twee tags toevoegen. Gescheiden door een komma.

\_

> [@W\_Wassink](#):
>
> hoe ik een rechtstreeks variabele kan ophalen in een script  
> zonder het kaartje voer script uit met argument te moeten gebruiken maar met kaartje voer script uit

Probeer deze scripts eens:

> [@How to read and Set the logic variables with HomeyScript?](https://community.homey.app/t/how-to-read-and-set-the-logic-variables-with-homeyscript/14520/5):
>
> If you want to look up a variable by name instead of id, you can use lodash like: const vars = await Homey.logic.getVariables(); const myVar = \_.find(vars, (o) =\> o.name === "Variable name"); log(`Changed switch is ${myVar.value}`) await Homey.logic.updateVariable({id: myVar.id, variable: {value: "foo"}})

> [@How to read and Set the logic variables with HomeyScript?](https://community.homey.app/t/how-to-read-and-set-the-logic-variables-with-homeyscript/14520/7):
>
> you really don’t need lodash to convert an object into an array so you can find a variable by a field property. you can just write: const myVar = Object.values(await Homey.logic.getVariables()).find(({name}) =\> name === "Variable name");

---

_[View the full topic](https://community.homey.app/t/help-with-ja-nee-variabele/120324)._
