Hoping someone could advise on whether there is any sort of ‘system.tag.toggle’ function that exists, similar to system.tag.write ? Basically, i want to write a tag to ‘1’ and then back to ‘0’ a second or two after via the script editor on the button.
Below is how I am currently accomplishing it, but i don’t believe this is best practice. If anyone could advise a better solution it would be appreciated.
Hi @zxcslo - that is a really useful negate function, however, we need to write from 0 to 1, and then from 1 to 0, all in one button click. Sort of like what a momentary pushbutton would do. I might explore the ‘invoke later’ function.
Thanks for sharing this! We want about a 3 second delay before resetting it, so InvokeLater might be the solution. I have saved this example code for future use though.