The code uses an operator for comparison when the intention was to perform an assignment.In many languages, the compare statement is very close in appearance to the assignment statement; they are often confused.