-
If the data source looks like:
([] kkey: enlist`message; vvalue: 1?(“ERROR: Missing Data”; “WARNING: Last load 2024.08.12″;”Data up to date”))<div>
I can use this template (with handlebars helper “occurrences”)
</div>
{{#if (occurrences this.0.vvalue “ERROR”)}}
{{this.0.vvalue}}
{{else}}
{{#if (occurrences this.0.vvalue “WARNING”)}}
{{this.0.vvalue}}
{{else}}
{{this.0.vvalue}}
{{/if}}
{{/if}}
In this case, query mapping is not necessary. Sorry for the formatting