Administration → System Administration → Configuring Email Notifications → Creating Notification Templates → Basic Velocity Examples
The following examples show how the notification template properties may be used in common Velocity statements.
#if (CONDITION)
***Statements/HTML to output
#else
***Statements/HTML to output
#end
Checking null values:
#if ($snapshot)
<tr><td>Snapshot:</td>
<td>$snapshot.getName()</td>
</tr>
#end
#set ($var = "odd")
#foreach ($item in $collection)
***Statements/HTML to output
#end
Copyright © 2011–2019 Micro Focus or one of its affiliates. All rights reserved.