Equals sign within an if statement of an expression

Hi! Why does this not work?

If you use panel, the input would be string or text. Try to convert text to number using Number or integerparameter.

Thank you!!