Hopefully this should be an easy question. In Java I think it’s compareTo().
How do I compare two string variables to determine if they are the same?
ie:
If (string1 = string2 And string3 = string4) Then
'perform operation
Else
'perform another operation
End If
I would suggest using the String.Compare method. Using that method you can also control whether to have it perform case-sensitive comparisons or not.
Sample:
Edit: If you want to perform a case-insensitive search you can use the StringComparison parameter: