How to use a Folder-Level variable as a counter?

#1

I’m trying to figure out the best way to implement a counter in my releases with a folder-level variable.

If I create a folder-level variable named “counter” what is the best logic to use to update that variable? I looked at the online documentation for releaseApi, folder and others, and those all seem to indicate that UpdateVariable does NOT update the read-only value.

Auto-complete in the XL Release Jython editor only shows a few options, but not the folderVariables value explained in a different community posting. I also can’t seem to find documentation online for folderVariables.