Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Scripting_function


Panel
titleDescription

Checks whether or not a tag Tag with a given path exists.

Client permissions restrictions


Panel
titleSyntax

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

Panel
titleCode Examples
Code Block
languagepy
titleCode 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)
Panel
titleKeywords

system tag exists, tag.exists