Matching variables

Hi guys,

If i have 2 variables 1 captured from a spreadsheet and another from a webpage how can i match the 2 to check if there outputs are the same?
I have looked in matches activity but find regex too complicated.

has anyone got a simpler solution?

Use an If activity. If MySSVar is the variable from the spreadsheet, and MyWPVar is the variable from the webpage, you can use the If activity with condition MySSVar = MyWPVar. If they are equal, the “Then” portion of the If activity gets executed. As a placeholder, you could put a message box here saying that the variables are equal.

@nick.v - you can try below options to verify both are having same values…

variableOut.ToUpper.ToString.Contains(variableExcel.ToUpper)

or

variableOut.Equals(variableExcel)

or

variableOut = variable Excel

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.