Error Suppress using system.tag.writeToTag

I’m having errors pop up when a client Script writing to a PLC tag fails. I know the system.tag.writeToTag function has a way to suppress errors, but I’m not sure what the code is expecting. Here’s my code:


What should I put in the ?? field?


The third argument is just a boolean so do the following:system.tag.writeToTag('HMI/PB/Reset7',1,1)

Great! So 1=“Suppress Errors” and 0 or NULL = “Don’t Suppress Errors”, correct?

Thank you!

Correct :slight_smile: