copy this:param:left var:left copy this:param:right var:right sloot.xquery declare variable $left as node() external; declare variable $right as node() external; <b>{if (string($left/string)=string($right/string)) then ('t') else ('f')}</b> var:left var:right this:response