zktest/src/main/webapp/zuti/simple/_if/multiNestedIf.zul
<zk>
<zscript>
isVisible = true;
</zscript>
<div style="border:1px solid red;" id="host">
**Start**
<if test="${isVisible}">
<div style="background:yellow">
1. First
<if test="${not isVisible}">
<div style="background:green">
Without Template
</div>
</if>
<if test="${isVisible}">
<div style="background:yellow">
Without Template
</div>
</if>
3. Last
</div>
</if>
**Middle**
<if test="${isVisible}">
<template>
<div style="background:yellow">
1. First
<if test="${isVisible}">
<template>
<div style="background:yellow">
With Template
</div>
</template>
</if>
3. Last
<if test="${not isVisible}">
<template>
<div style="background:green">
With Template
</div>
</template>
</if>
</div>
</template>
</if>
**End**
</div>
</zk>