The numbers i compare are from an excel file and the other is on SAP, the numbers are the same but at the end the bot think that the numbers are different.
I think its beause once is a text and the second is a number
this is the code for the number on excel :
This is the code for the number in SAP :
Hi,
Can you check and share each value of excel and SAP using LogMessage activity etc? Probably, It’s necessary to convert them to be comparable.
Regards,
Hi @Soudios
Try the below way
If Convert.ToInt32(Number1) = Convert.ToInt32(Number2) Then ' Your logic if numbers are equal Else ' Your logic if numbers are not equal End If
Hope it helps!!