system.tag.exists
This function is used in Python Scripting.
Descriptionβ
Checks whether or not a tag with a given path exists.
Client Permission Restrictionsβ
This scripting function has no Client Permission restrictions.
Syntaxβ
system.tag.exists(tagPath)
Parametersβ
| Type | Parameter | Description |
|---|---|---|
| String | tagPath | The path of the tag to look up. |
Returnsβ
Boolean - True if a Tag exists for the given path, false otherwise.
Scopeβ
Gateway, Vision Client, Perspective Session
Code Examplesβ
Example #1
# 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)