I have a variable where it prints correctly if I use "Log Variable" action but when I try to compare it in an "If.. Then.." action, it always shows blank? I have attached a simple sample project. Please let me know how I can solve this.
Thanks
I have a variable where it prints correctly if I use "Log Variable" action but when I try to compare it in an "If.. Then.." action, it always shows blank? I have attached a simple sample project. Please let me know how I can solve this.
Thanks
I believe the problem is in your script :
Set MyMatchCollection = MyRegExp.Execute(“abc120101def”)
DateVar2 = MyMatchCollection.Item(0) <<<<
That will put a Regex Match object into your variable…since that’s seen as a COM object, it can’t be converted to any other type. The fix is to do this :
DateVar2 = MyMatchCollection.Item(0).Value