Template Engine uses the equality operator (==) to determine the relationship between variables, and logical operators (and, or, not) for boolean conditions.
#set($first = "foo")#set($last = "bar")#if($first == $last)First and Last are equal.#elseFirst and Last are not equal.#endThe output in this example is First and Last are not equal.
#if( $foo && $bar )<b> This AND that</b>#end
#if( $foo || $bar )<b> This OR that</b>#end
#if( !$bar )<b> NOT this</b>#end
OpenText StreamServe 5.6 | Updated: 2013-03-01 |