else if(b=false){ // yes b is false here x=2; orginally posted by asha here.. you are assigning b=false. if, b == false then, it prints x = 2 regards samura