<if condition="$bbuserinfo['usergroupid']==2"> CODE FOR REGISTERED USERS </if>
<if condition="$bbuserinfo['usergroupid']==2"> Show if usergroup id is 2 <else /> Show if usergroup id is not 2 </if>