% var operators = { "is": "is", "is-not": "is not", "empty": "is empty", "not-empty": "is not empty" }; %> <% _.each(operators, function (option, key) { %> <% if (values.comp === key) { %> <%- option %> <% } else { %> <%- option %> <% } %> <% }); %> <% _.each(options, function (option, key) { %> <% if (parseInt(values.value, 10) === option.value) { %> <%- option.title %> <% } else { %> <%- option.title %> <% } %> <% }); %>