Checking if 2 things are false
I am trying to implement a method which adds 2 classes, both of which have a field that stores their value as an int (e.g. 2) and a field which stores their sign (true if positive, false if negative).
I want to add them, but at the moment it's ignoring their signs, so adding +2 and -3 is giving +5.
I want an if statement to check if both class1 and class2 have false in their sign field.
but it won't compile, saying 'unexpected type.' How can I check if they're both false, why is this wrong?
if (this.sign = false && otherclass.sign = false)