Append to array tag by scripting

How do i append a new element to the end of a string array tag by event scripting?

tagPath = "StringArrayTag"

tagValueArray = system.tag.read(tagPath).value
tagValueArray.append('item')

system.tag.write(tagPath, tagValueArray)
1 Like

Thank you! Works great!