Template Engine language reference > Functions > .type()

.type()
The .type() function returns the type of a variable.
Example 5
#if($a.type()=='int')
#set($b=$a.toDouble()/2)
#elseif($a.type()=='double')
#set($b=$a/2)
#end
 
OpenText StreamServe 5.6 Updated: 2013-03-01