Eq received an invalid combination of arguments - got (Variable), but expected one of (int value) didn't match because some of the arguments have invalid types: (Variable)

Thank you very much!I have solved it