Question: Error, (in ...) cannot determine if this expression is true or false

My code works fine when not part of a procedure it is only until I turn it into a procedure when I have problems. After running the proc once I get:

"Error, (in opt) cannot determine if this expression is true or false: min(`.`(Transpose(Vector(1, {(1) = 7})), ..."

Strangely if I execute the proc() code a second time and try again I get an answer out. Any suggestions as to how I can solve this problem?

I have (which I believe is where the problem lies),

z_c:=seq(Transpose(cB).C.P[i]-c[i],i=nB);
m:=min(z_c);
member(m,[z_c],'enter'):

before a while loop to give me an initial starting point and then again in the while loop (i.e. while m<0)

Please Wait...