node.js - Why doesn't this if/else work in ejs? -
<% if (title != undefined) { %> <%= title %> <% } elseif(title == undefined) { %> <%= "trendy analytics" %> <% } %>
why doesn't sort of thing work in .ejs file?
it's else if
not elseif
:
<% if (title != undefined) { %> <%= title %> <% } else if(title == undefined) { %> <%= "trendy analytics" %> <% } %>
Comments
Post a Comment