Directives (Commands)

These are the key commands of the Velocity Template Language that are most frequently used in IdentityIQ email templates to dynamically determine the text that is printed in each email message.

#If… #elseif… #else… #end

Conditional evaluation

#if($requester) requested by $requester.displayableName. #{end}

#foreach… #end

Loop through a list of objects

#foreach ($attrReq in $acctReq.attributeRequests) Operation: $attrReq.operation Attribute:$attrReq.name Value(s): $attrReq.value#end

#set

Establish the value of a reference

#set ($identityName = “John.Smith”)#set ($book.Title = “War and Peace”)

Refer to the Velocity User Guide for additional information on the language, including the syntax for less commonly used directives.