2022.1

Table Of Contents
<tr>
<th class="h3">Clause(s)</th>
<td>None</td>
</tr>
{{else}}
{{#each Clause}}
<tr>
<th class="h3">{{#if @first}}Clause(s){{/if}}</th>
<td>{{Descr}}</td>
</tr>
{{/each}}
{{/unless}}
</tbody>
</table>
#with and #each
This #with block calls a custom helper (see "Adding custom helpers" on the next page) that
returns an object with the properties: object, amount, coverage and premium. The object's
properties are accessed directly inside the block. The #with block is executed for each of the
records in a detail table called 'insurance_coverage'.
{{#each insurance_coverage}}
{{#with (getObjectAndCoverage)}}
<tr>
<td>{{object}}</td>
<td class="curr"></td>
<td>{{amount}}</td>
<td>{{coverage}}</td>
<td class="curr"></td>
<td>{{premium}}</td>
</tr>
{{/with}}
{{/each}}
Additional helpers in OLConnect
OL Connect provides the following additional helpers.
l eq, neq (equal, not equal) - tests two values for equality
l gt (greater than), gte (greater than or equal), lt (lower than), lte (lower than or equal) -
compares two numbers
Page 454