<if condition="!$userinfo[referrername]">1<else />(whatever is the default value set for the referrer name field)</if>