Hello,
This snippet is coherent.
You could use parameter "default" instead of "when" for the last block.
If your real conditional display is that simple, you could also do it like this:
<span>
<a href="javascript: ajax('recicle');">
<img src="images/recicle_bin_[var.xonga;if [val]=0;then 'empty'; else 'full'].jpg"
alt="" width="30" height="37" border="0">
</a>
</span>
|