How to use if statements with in for loop in Hogan js How to use if statements with in for loop in Hogan js express express

How to use if statements with in for loop in Hogan js


You tried This

 <table>     <thead>        <tr>          <th>Owner Name</th>          <th>Address</th>          <th>Contact</th>          <th>Bussiness  info</th>          <th>User</th>          <th>Created Time</th>          <th>Verification</th>         </tr>      </thead>      <tbody>      {{#allRecords}}        <tr>          <td>{{owner_name}}</td>          <td>{{office_type_name}}-{{office_number}}, {{locality_name}}                                {{city_name}}, {{state_name}}, {{cname}}</td>           <td>{{mob_no}}<br>{{email_name}}</td>           <td>{{service}}</td>           <td>{{name}}</td>           <td>{{created_date}}</td>           {{#verification}}           <td><i class="fa fa-check fa-2x green"></i></td>           {{/verification}}           {{^verification}}           <td><i class="fa fa-exclamation-triangle fa-2x red"></i></a></td>           {{/verification}}         </tr>           {{/allRecords}}        </tbody>     </table>