There could be three reasons for this:
It could be a mistyping of the !=
operator, meaning not equal to. Example:
if (a != b) {
// a is not equal to b
}
It could be a mistyping a == !b
, meaning a
is equal to not b
, which would most commonly be used with booleans. Example:
if (a == !b) {
// The boolean a is equal to not b (a is not equal to b)
}
It could be trying to assign a
to the inverse of b
. Example:
bool a = !b; // Sets a to the opposite of b