2022.1

Table Of Contents
<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
l not, or, and - logical operators
l add - adds two numbers
l sub - subtracts two numbers
l startsWith - tests if a string starts with a certain prefix
l endsWith - tests if a string ends with a certain suffix
l matches - tests if a string matches a regular expression
Page 984