blob: b67cfa9e493bde31de1673695eb05e99383a84c3 [file] [log] [blame]
#*
@test ifstatement.vm
This template is used for Velocity regression testing.
If you alter this template make sure you change the
corresponding comparison file so that the regression
test doesn't fail incorrectly.
*#
#set($foo = "woogie" )
start :
#if($foo)
right
#end
#if(!$foo)
wrong
#else
right
#end
#if( !$foo )
wrong
#else
right
#end
#if( ! $foo )
wrong
#else
right
#end
#if( ! ! $foo )
right
#end
#if($bar)
wrong
#else
right
#end
#if($bar)
wrong
#elseif( $foo )
right
#end
#if( $bar )
wrong
#elseif( $floogie )
wrong
#elseif( $woppie )
wrong
#else
right
#end
#if(!$bar)
right
#end
#if( !$bar)
right
#end
#if( !!$bar)
wrong
#else
right
#end
done