//neither object to be compared is a node-set
}else if(neither operand1 nor operand2 is node-set){
return comparebasic(operand1,operand2,operator);
}else{
//in this case, one object is node-set and the other is of basic type.assume operand1 is node-set
iterator i1 = operand1.iterator();
while((node1 =i1.next()!=null){
if(operand2 is number)convert node1 to number as a new object named newoperand1