This is to validate the input string. (for example, not empty, not empty). That way, you donβt want to do both checks every time you want it to be what it is done for. If you want to check one of them, you can simply compare == null or == "" .
Daniel
source share