Like Operator Workaround for VBScript

VBScript lacks a Like operator. A common approach is to translate the pattern strings to use VBScript’s RegExp object, but you could use the IsLike function below instead: Public Function IsLike(ByVal Input, ByVal Pattern) If Input = “” Xor Pattern = “” Then IsLike = False Exit Function End If