Hi friends, I have a question.

I have this piece of my program and how you see, that's ok (whit > num<-
0.002)

num<-0.002
factor1<-1;
while(1)
{
if (num*factor1<1)
factor1<-factor1*10
else
{
print("out ok!!");
break;
}
}

[1] "out ok!!"


but when I change (whit > num<-0) R show this:

Error in if (num * factor1 < 1) factor1 <- factor1 * 10 else { :
missing value where TRUE/FALSE needed


I can't understand that error, can somebody help, please
thanks
 Jac

	[[alternative HTML version deleted]]


