thinkphp html中if判断写法

<if condition="$val == 1">

  1

<else />

  2

</if>