% var options = { 'is-less-than': 'is less than', 'is': 'is', 'is-more-than': 'is more than', 'is-between': 'is between' }; %> <% _.each(options, function (option, key) { %> <% if (values.comp === key) { %> <%- option %> <% } else { %> <%- option %> <% } %> <% }); %> and