System.tag.write()

Is it possible to prevent writing to the tag based on a specific number I don’t want to write to tag. How would I script that?

Thanks.

where does the number that you dont want to write come from?

Like this:

if num != 10:
	system.tag.write(tagPath,num)

10 being the number that you don’t want to write to the tag.