Value of expression following WHILE keyword must be exactly "0" or "1"; found value
Synopsis
An expression after a WHILE keyword is supposed to evaluate to 0 (FALSE) or 1 (TRUE), such as a comparison of two items for equality. But it evaluated to some other value. value is what your expression evaluated to.