Having problem assigning values

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

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 Also look into the system.tag.writeAll() function, this allows you to write values to multiple tags at the same time.


Worked !!..
Thank you so much