Conditional Statements in E-mail Notifications
To use conditional statements in e-mail templates, you must follow the Velocity syntax rules. Velocity is a Java-based template engine that is part of the Apache Velocity Project.
Do not use the characters (<) and (>) in e-mail templates.
The following examples show how to use template tags in conditional statements:
String Example
#if(${MailCompose.TokenType}==”Android 1.x”)
Instructions for importing a software token on the Android platform.
#elseif(${MailComposer.TokenType}==”iPhone 1.x”)
Instructions for importing a software token on the iPhone platform.
#else
Generic instructions for importing software tokens.
#end
Boolean Example
#if( ${Principal.isEnabled } )
do some thing
#end
Integer Example
#if( ${ UCMRequest.Status } < 5 )
do some thing
#else
do nothing
#end
Related Articles
Configure E-mail Notifications for Self-Service User Account Changes 60Number of Views Customize E-mail Notifications 67Number of Views Using E-mail Notifications for Provisioning Requests 41Number of Views Steps to change the RSA Authentication API 8.x Output Return Statements in the Sample Code 16Number of Views Configure and Manage Email Notifications 167Number of Views
Trending Articles
RSA Authentication Manager Upgrade Process RSA Authentication Manager Patch Updates RSA SecurID Software Token 4.1.2 and 4.2.1 for Mac OS X displays: No token storage device was detected. Verify that the de… How to manipulate imported RSA SecurID Software Token(s) on an iPhone or iPad device RSA SecurID software token .sdtid file fails to import into RSA SecurID Software Token 5.0 for Windows