I am using {{ collection:characters }} to generate a list of checkboxs, where the value of the checkbox is equal to a field out of the character as seen here,

{{ collection:characters }} <input type="checkbox" name="{{ affiliation }}" id="{{ affiliation }}">{{ affiliation }} <br> {{ /collection:characters }}

This generates a checkbox for each character exported. I only want checkboxes equal to the amount of unique "affiliation"s from my collection:characters.

If I have 15 characters, and 4affiliations, I want to only have 4 checkboxes, one for each affiliation.