{{formula}}
{{#each dice as |die|}}
{{die.formula}} {{#if die.flavor}}{{die.flavor}}{{/if}} {{die.total}}
    {{#each die.results as |r|}} {{#if (eq r.result 6)}}
  1. {{r.result}}
  2. {{else}} {{#if (lt r.result 4)}}
  3. {{r.result}}
  4. {{else}}
  5. {{r.result}}
  6. {{/if}} {{/if}} {{/each}}
{{/each}}