When comparing string values in an IF statement, it does matter whether the strings are in uppercase or lowercase unless you specify a case-insensitive comparison. In many programming languages, string comparisons are case-sensitive by default, meaning that "Doe" and "DOE" would be considered different strings.
To avoid having to check both variations, you can use a case-insensitive comparison method. For example, in Visual Basic, you can use the Option Compare statement to set the comparison mode to case-insensitive, or you can explicitly use a method that allows for case-insensitive comparison. This way, you can write your IF statement without needing to check both cases separately.
In summary, if you want to treat "Doe" and "DOE" as equal, you should use a case-insensitive comparison method instead of checking both conditions separately.