<if condition="$post[fieldx] === '2'"> <img src="$post[field1].gif" border="0" alt="" /> </if> <if condition="$post[fieldx] === '3'"> <img src="$post[field2].gif" border="0" alt="" /> </if>