ifstatement.vm
来自「velocity 的脚本语言的全部代码集合」· VM 代码 · 共 80 行
VM
80 行
#*@test ifstatement.vmThis template is used for Velocity regression testing.If you alter this template make sure you change thecorresponding 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#enddone
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?