<if condition="$post['field3']"> code here </if>
<if condition="$post['field5'] == yes"> code here <else/> more code </if>