--- title: "system.tag.writeToTag" description: "Writes a value to a tag. If suppressErrors is true, error messages on failed writes will not be shown." --- # system.tag.writeToTag > Writes a value to a tag. If suppressErrors is true, error messages on failed writes will not be shown. :::note Deprecated This function was deprecated in 8.1.0. ::: This function is used in **Python Scripting**. ## Description ## Client Permission Restrictions This scripting function has no [Client Permission](versioned_docs/version-8.1\ignition-modules\vision\vision-project-properties\vision-project-properties.md#vision-permissions-properties) restrictions. ## Syntax `system.tag.write(tagPath, value, [suppressErrors])` - Parameters - String `tagPath` - The path of the tag to write to. - Object `value` - The value to write. - Boolean `suppressErrors` - A flag indicating whether or not to suppress errors. [optional] - Returns - int - 0 if the write failed immediately, 1 if it succeeded immediately, and 2 if it is pending. - Scope - All ## Code Examples ```python title="Code Snippet" # This code would go on a property change event for a numeric text field to calculate and write a value to a tag. if event.propertyName == intValue: calcValue = event.newValue * 2.5 system.tag.writeToTag("Tanks/tankHiSP",calcValue) ```