declare variable $user as xs:string external; if($user = 'anonymous') then else