I feel that you're not grasping the core difference here. To water it down:
The assignment operator (=) makes one thing another (changes its value).
The comparison operator (==) checks to see...
Type: Posts; User: Matticus
I feel that you're not grasping the core difference here. To water it down:
The assignment operator (=) makes one thing another (changes its value).
The comparison operator (==) checks to see...
See post #7.
What is line 36 supposed to be doing?
Post that version of the code, please.
That's probably because you're also mixing up with equality operators (==) with assignment operators (=).
"Doesn't work" is a vague and useless description of your problem. For the best assistance, post the updated code along with all warning/error messages you've received.
It means you're mixing up assignment operators (=) with equality operators (==) in multiple places.