ejs if else statement code example
Example: ejs if else
<h1>Hey <%= title.toUpperCase() %>, Welcome </h1>
<% if(title.toLowerCase() === "Rabbit"){ %>
<p>Welcome Code_Breaker!</p>
<% } else { %>
<p>You are not Code_Breaker</p>
<% } %>
<h1>Hey <%= title.toUpperCase() %>, Welcome </h1>
<% if(title.toLowerCase() === "Rabbit"){ %>
<p>Welcome Code_Breaker!</p>
<% } else { %>
<p>You are not Code_Breaker</p>
<% } %>