PTC ALD in Arbortext Styler > Components of Documents and Templates > Variables, Counters, and FISH > String Counters
  
String Counters
Introduction
String counters are similar to numeric counters, holding strings instead of numbers. Each formatted content stream has 100 string counters numbered 0 to 99. The contents of a string counter can be up to 4000 characters long. The initial value of a string counter is empty.
Using String Counters in JavaScript
This example sets the string counter numbered 21 to a value of some text:
formatting.stringCounters[21] = "some text";
String counters can be named instead of numbered, in a similar way to numeric counters. Refer to Numeric Counters for information.
Best Practices
Although a large amount of content can be stored in a string counter, this may affect performance. Consider other methods such as variables or XPath if you are holding much content.