Top | Previous | Next |
system.tag.exists |
Description Checks whether or not a tag with a given path exists. Syntax system.tag.exists(tagPath) Parameters String tagPath - The path of the tag to look up. Returns boolean - True if a tag exists for the given path, false otherwise. Scope All Examples This code would write a 1 to the tag "Compressors/C28/ClearFault" if that tag exists.
if system.tag.exists("Compressors/C28/ClearFault"): system.tag.write("Compressors/C28/ClearFault", 1)
|