Chameleon offers simple methods for accessing
subfields in segment field scripts via the use
of a field object. This section lists the methods
that the field object supports and demonstrates how they
can be used.
There was an issue in Chameleon versions 4.5 and earlier, where outbound segment scripts were erroneously executed for every repeat of a field during message generation. In versions 5.0 and later, the outbound segment scripts are executed only once per field.
Also note that repeat_field(RepeatIndex) behaves differently between parser engine versions. For more information, see Field Object Behavior in Parser Versions.