Firstly, "=" is an assignment operator, not a comparison. Equality is tesed for with "==" instead.
Secondly, you need the AND or OR operator: && or ||
a AND b
is true only if both conditions
a
and
b
are
true
- otherwise it returns
false
a OR b
is true only if either condition
a
and
b
are
true
- it returns
false
only if both are false.
For example:
if (a == 1 && b == 2 && c == 3)
{
...
}
If this isn't what you meant, then you need to explain in a lot more detail exactly what you need!