팁/튜토리얼

템플릿 문법에서 if의 사용법

2018.09.03 03:13
829
2

https://xetown.com/qna/993934#comment_1055885

https://xetown.com/qna/411

 

이미 제가 물어봐놓고 (3년 전에....);;

다시 물어봤네요..;;

 

{@
    if (조건):
        abcd;
    else:
        abcdef;
    endif;
}

 

 

 

{@
if ($a > $b) : 
$str = "a는 b보다 크다";
elseif ($a == $b) : 
$str = "a는 b와 같다";
else : 
$str = "a는 b보다 작다";
endif; 
}  

eond Lv. 12

댓글 1