# System.Tag.Toggle?

**URL:** <https://forum.inductiveautomation.com/t/system-tag-toggle/34412>\
**Category:** Ignition\
**Created:** [May 4, 2020, 4:56pm UTC](https://forum.inductiveautomation.com/t/system-tag-toggle/34412 "2020-05-04T16:56:13Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![witman](https://avatars.discourse-cdn.com/v4/letter/w/d2c977/32.png) [@witman](https://forum.inductiveautomation.com/u/witman)\
**Post date:** [May 4, 2020, 6:20pm UTC](https://forum.inductiveautomation.com/t/system-tag-toggle/34412/6 "2020-05-04T18:20:50Z")

</div>

Yes, you'll want to use invokeLater--not sleep--for the second write, as in this example:

> [@Delay system.tag.write in component scripting](http://forum.inductiveautomation.com/t/delay-system-tag-write-in-component-scripting/18272/2):
>
> Wrap it in system.util.invokeLater in the actionPerformed event. Replace “[Client]testFloat” in code below with the actual path to your tag (right-click on tag in Tag Browser and choose Copy Tag Path): # Define a function to call after a delay def writeLater(): import system system.tag.write("[Client]testFloat", 0) # Tell the system to invoke the "writeLater" function after 3 seconds (3000 ms) system.util.invokeLater(writeLater, 3000)

---

_[View the full topic](https://forum.inductiveautomation.com/t/system-tag-toggle/34412)._
