In addition to using variables (see section Variables below) there are some loop commands can be used when designing collection ticket layouts.
With these commands, it is possible to loop through the selected collections or payment channels (or both) and to get the assembled data printed.
Acronyms:
cch collection channel
pc previous collection
pcch previous collection channel
cslrch collections since last reset channel
bch balance channel
Loop through items (channel/issuer) within current collection
Command |
Explanation |
---|---|
@cchignore@beginloopcch @endloopcch@cchhandle |
Loops through all items (channel/issuer) within current collection. @cchignore will ignore all items that do not contain any amount. @endloopcch will increment the local channel counter until end of items |
Loop through previous collections
Command |
Explanation |
---|---|
@pcignore@beginlooppc @endlooppc@pchandle |
Loops through previous collections. @pcignore will ignore all empty previous collections. @endlooppc will increment the local previous collection counter. |
Loop through items (channel/issuer) within selected previous collection(s)
Command |
Explanation |
---|---|
@pcchignore@beginlooppcch @endlooppcch@pcchhandle |
Loops through all items (channel/issuer) within previous collection chosen by beginlooppc. @pcchignore will ignore all items that do not contain any amount. @endlooppcch will increment the local channel counter until end of items. |
Loop through items (channel/issuer) within all collections since last reset
Command |
Explanation |
---|---|
@cslrchignore@beginloopcslrch @endloopcslrch@cslrchhandle |
Loops through items (channel/issuer) within all collections made since last reset. @cslrchignore will ignore all items that do not contain any amount. @endloopcslrch will increment the local channel counter until end of items. |
Loop through items (channel/issuer) within balance
Command |
Explanation |
---|---|
@bchignore@beginloopbch @endloopbch@bchhandle |
Loops through items (channel/issuer) within Balance. @bchignore will ignore all items that do not contain any amount. @endloopbch will increment the local channel counter until end of items. |