2022.2

Table Of Contents
Subexpressionscan,butdon'thavetobe,delimitedbyparentheses.Forexample,{{#if eq a b}}
and{{#if (eq a b)}}arebothvalid.
Formatting
OLConnectprovidesanumberofHelperstoformat the valuethatistheresultofanexpression.Fora
list,see"FormatHelpers"onpage769.
Logic
OLConnecthasanumberofadditionalHelpersthatallowfortheuseoflogicinexpressions.
l
eq(equal),neq(notequal)-teststwovaluesforequality
l
gt(greaterthan),gte(greaterthanorequal),lt(lowerthan),lte(lowerthanorequal)-com-
parestwonumbervalues
l
not,or,and-logicaloperators
l
add-addstwonumbervalues
l
sub-subtractstwonumbervalues
l
mul-multipliestwonumbervalues
l
div-dividestwonumbervalues
l
startsWith-testsifastringstartswithacertainprefix
l
endsWith-testsifastringendswithacertainsuffix
l
matches-testsifastringmatchesaregularexpression
Thesecanbeusedas expression(returnstheresult).
Example: <p>Recurseverymonth:{{eq'Monthly'recurrence}}</p>
Thisexpressionreturns"true"ifthevalueofthedatafieldrecurrenceis'Monthly'.
Theycanalsobeusedin subexpressions,forexampleofaBlockHelper.
Example: <p>{{#if(eq'Monthly'recurrence)}}Recurseverymonth{{/if}}</p>
ThisBlockHelperoutputs"Recurseverymonth"ifthevalueofthedatafieldrecurrenceis
'Monthly'.
BlockHelpers
BlockHelpersareaspecialkindofHelpers.Theylooklikethis:
{{#helperName arguments}} ... {{/helperName}}
Page 767