XE공식사이트에서 엘카님이 작성한 팁입니다.


<!--@if($logged_info->is_admin=="Y" && $xxx > 123)-->

~

<!--@else-->

~

<!--@end-->


<block cond="$logged_info->is_admin=='Y' && $xxx > 123">

~

</block>

<block cond="$logged_info->is_admin!='Y' || $xxx <= 123">

~

</block>


{@ $cond = ($logged_info->is_admin=='Y' && $xxx > 123); }

<block cond="$cond">

~

</block>

<block cond="!$cond">

~

</block>


응용

{@

$cond = ($logged_info->is_admin=='Y' && $xxx > 123);

$cond2 = ($cond || $yyy == 456);

$cond3 = ($cond || $zzz < 789);

}

<block cond="$cond">

~

</block>

<block cond="$cond2">

~

</block>

<block cond="$cond3">

~

</block>