In the future please post code in code tags, not as screenshots. Also post your errors as text in code tags as well.
In C# equality checks are done using the == comparison operator, and it will return a bool. The problem is that you are using the = assignment operator which returns the type of the assignment.
Closing - This isn't a guessing forum. Either you put the effort into asking a question and post your code within code tags and not as screenshots of your code or please don't post at all.
Taking every account into consideration here including the fact you are new to the forum, but you are surely not stupid either. A little common sense when posting on the forums will result in a well written question remaining open.
Reasons for closing :
We can't copy text from screenshots
We won't rewrite your code from screenshots
You neglected to ask a question
You neglected to explain your issue
Post contains no question
No effort put into the opening topic
If you expect courteous replies, please take the time to ask a courteous question and explain your issue elaborately in order for us to best assist you. How To Ask Questions The Smart Way
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.