Complete example with <if> tag