In this example I'd like the macro to execute only if the variable "TestVar" contains the text "Condition", with a capital "C". It is currently executing on "condition" with a lowercase "c". Is there any way to achieve the desired result here?
Looks like setting it to "matches" instead of "contains" is doing the trick. So problem solved? Anybody know if I'm in for any surprises by setting it to "matches"?
Gotcha - looks like everything in that list is specified to be cases INsensitive. The "matches" thing is currently working for me so I guess I'll leave it for now - but I'm very open to hearing about any other option of creating case sensitivity.
Matches is case-sensitive by default, but you can turn that off as I have in the appended macro with a regex pattern modifier.
You'll note that I'm matching much more than a simple string.
The potential problem when using Match is that you might use one or more regex metacharacters by accident and create an unexpected match or failure to match.
Take a look here to get a glimpse of what could be problematic: