END expression in document template
The END expression in a template is used to terminate a template expression (IF, WHILE, SWITCH, FOR).
Notes: 
In contrast to other template expressions, the END expression must not contain any spaces between the preceeding '$' character and the END keyword.
Definition: 
end_expr := dollar_end _dollar

