{* file: nested_with_delimiter_0053.in *} {var $foo = array( 0, 1, 3 ), $foo2 = array( '', 'foo' ), $bar = 0, $bar2 = 0, $num = 0, $num2 = 0, $i = 0, $j = 0} \{0053 {foreach 1..1 as $blackhole} {$num = 0}{$i = 0} {while $num<3} {$bar = $num} {$num++} {switch $bar} {case 1} {$i}:[switch]1[/switch] {/case} {case 2} {$i}:[switch]2[/switch] {/case} {default} {$i}:[switch]default({$bar})[/switch] {/default} {/switch} {$j = 0} {if $foo2[1]} {if $bar2} {$i}:{$j}:[if]$bar2 is true[/if] {else} {$i}:{$j}:[if]$bar2 is false[/if] {/if} {delimiter} {$i}:{$j}:====delim==== {/delimiter} {delimiter modulo 2} {$i}:{$j}:____delim____ {/delimiter} {/if} {++$i} {/while} {/foreach} \}