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

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
Code Snippet
# 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)
Keywords

system tag exists, tag.exists