--- title: "system.tag.exists" description: "Checks whether or not a tag with a given path exists." --- # system.tag.exists > Checks whether or not a tag with a given path exists. This function is used in **Python Scripting**. ## Description ## Client Permission Restrictions This scripting function has no [Client Permission](../../../ignition-modules/vision/vision-project-properties/vision-project-properties.md#vision-permissions-properties) 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 ```python title="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) ```