You need to replace your “=“ with “==“. The single “=“ sets the thing in the left to the value on the right. The double “==“ is a logical test of equality and returns True if the left side is equal to the right.
No problem. The syntax of Mathematica is a little unusual and takes some getting used to. But once you do get used to it it is very clear and concise and nice to work with.