If condition fails in comparsion



Hi -

In RPAx I am trying to compare two values - I am getting first value from reading an excel file and the value is stored in a string variable and for the second value I am using OCR to capture a string and putting it into a different string variable.

Later I am comparing them using If condition; but the compare always fail. I checked the variable values by writing it to a notepad and both variables have same value.

Any help would be appreciated,


Maybe it is this problem with your OCR result:

Try removing the first character from your OCR result. Even if it doesn’t show in notepad it might still be there as hidden character.


This worked perfectly !!