<if condition="$post[avatar]">$post[avatar]<else /><img src="path/to/image" border="0" alt="No avatar selected" /></if>