3.10
@@Define
Use @@Define when you want to define a custom token. @@Define is useful when you have a long token or a token containing complex logic and you want to simplify it for ease of use or readability in the template.
Syntax:
@@Define <token name> <token definition>
Parameters:
<token name>
The name of the token you are creating.
<token definition>
Example:
@@Define #CenEE #Rates.Rate.SpCensusEE
@@Define #SpCoverage @@If(#Terms.SpIsCovered = ‘Y’, ‘☒ Covered ☐ not covered’, ‘☐ Covered ☒ not covered’)
Invoke a defined token as you would any other token within the template.
Example:
Composite Census: #CenEE
Specific Coverage: #SpCoverage