[Note: This question is very similar, but not quite the same.]
I'm trying to do if
statements with underscore templates. I have tried:
<% if (_id) { %><%=_id %><% } %>
and
<% if (_id) { _id } %>
and
<% if (_id) { <%= _id %> } %>
and a bunch of other combinations, but I always get the error
ReferenceError: _id is not defined
Any suggestions?