# Having problem assigning values

**URL:** <https://forum.inductiveautomation.com/t/having-problem-assigning-values/19660>\
**Category:** Ignition\
**Created:** [September 13, 2018, 3:42pm UTC](https://forum.inductiveautomation.com/t/having-problem-assigning-values/19660 "2018-09-13T15:42:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kaushik.shah](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@kaushik.shah](https://forum.inductiveautomation.com/u/kaushik.shah)\
**Post date:** [September 13, 2018, 3:42pm UTC](https://forum.inductiveautomation.com/t/having-problem-assigning-values/19660/1 "2018-09-13T15:42:26Z")

</div>

I am new in Ignition and trying to understand and create small project.  
I have 2 stage toggle button and trying to assign Boolean value to 2 different tags depending on the current state of button.  
I tried different things but didn’t work.  
Any ideas please

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/5/5c289a0aafa1ffd86f6deb5f8f993ad452fa9d31.PNG)

---

<div class="post-metadata">

**Author:** ![brian.mcenulty](https://avatars.discourse-cdn.com/v4/letter/b/b77776/32.png) [@brian.mcenulty](https://forum.inductiveautomation.com/u/brian.mcenulty)\
**Post date:** [September 13, 2018, 3:49pm UTC](https://forum.inductiveautomation.com/t/having-problem-assigning-values/19660/2 "2018-09-13T15:49:52Z")

</div>

You’ll need to use the system.tag.write() function to write a value to the tag. [https://docs.inductiveautomation.com/display/DOC79/system.tag.write](https://docs.inductiveautomation.com/display/DOC79/system.tag.write) Also look into the system.tag.writeAll() function, this allows you to write values to multiple tags at the same time.

---

<div class="post-metadata">

**Author:** ![kaushik.shah](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@kaushik.shah](https://forum.inductiveautomation.com/u/kaushik.shah)\
**Post date:** [September 13, 2018, 9:35pm UTC](https://forum.inductiveautomation.com/t/having-problem-assigning-values/19660/3 "2018-09-13T21:35:47Z")

</div>

Worked !!..  
Thank you so much
