기초 문법

Study/Velocity 2013. 2. 13. 14:29
If / ElseIf / Else

#if( $foo < 10 ) <strong>Go North</strong> #elseif( $foo == 10 ) <strong>Go East</strong> #else <strong>Go West</strong> #end
==, !, ||, && 등 java 와 연산자 사용이 동일하다.


Foreach Loop


#foreach( $product in $allProducts ) <li>$product</li> #end

 

'Study > Velocity' 카테고리의 다른 글

간단한 문법 정리  (2) 2013.02.13
[번역] Velocity Template Language(VTL) 참조 안내서  (0) 2013.02.13
Posted by 코딩하는 야구쟁이
,