Programmable Templates (Email, Task, SMS)

By using programmable templates, you can send personalized messages to your clients and colleagues.

Variable

Variables are displayed between the following signs: {%…%} The output is the value of the variable.

Template:
{%Person.FirstName}
Variable:
Person.FirstName = 'John'
Output:
John

Control structures

Control structures are displayed between the following signs: {* … *} They don’t have outputs.

Two control items can be used in templates:
if
for

if

The following operators are supported: ==, !=, <, >, >=, and <=.

Template:
Dear 
{* if Person.FirstName != "" *}
    {%Person.FirstName%}
{* else *}
    Reader
{* endif *}
Variable:
Person.FirstName = "John"
Output:
Dear John

You can also check whether a string starts or ends with another string.

{* if 'John' starts with 'J' *}
{* endif *}

{* if 'John' ends with 'n' *} {* endif *}

for

By using it, you can insert and customize product lists.

Template:
<ul>
{* for Item in Product.Recommendations *}
  <li><a href="{%Item.Url%}">{%Item.Name%}</a></li>
{* endfor *}
</ul>
Variable:
Product.Recommendations = [
  ['Url' => 'http://example.com/product1.html', 'Name' => '1. Product'],
  ['Url' => 'http://example.com/product2.html', 'Name' => '2. Product']
]
Output:
<ul>
  <li><a href="http://example.com/product1.html">1. Product</a></li>
  <li><a href="http://example.com/product2.html">2. Product</a></li>
</ul>