I want to check a string condition which is below
if (email.VENDOR_CODE != "0" || email.VENDOR_CODE != "00" || email.VENDOR_CODE != "000" || email.VENDOR_CODE != "0000" || email.VENDOR_CODE != "00000") {...}
and the value of email.VENDOR_CODE = 00;
it should return me false, but it is returning me as TRUE
why ? any specific reason, as both I am giving the values as string and checking the same datatype
Aucun commentaire:
Enregistrer un commentaire