I'm trying to figure out what's happening in this simple IF condition...
The idea is: -If the two first conditions or the two second condition.
So, if it's AUDI and not null, OR, VOLKSWAGEN and not null, do...
My code is:
if((request.getOBJECT().value().equals("AUDI") && request.getESTADO()!=null) || (request.getOBJECT().value().equals("VOLKSWAGEN") && request.getESTADO()!=null ))
The problem is that this is not working. Why?
EDIT: The actual values are AUDI and null, so it's supposed to not enter in the if, but it's going in
Aucun commentaire:
Enregistrer un commentaire