Hi all. I’m new to UiPath and I need your help. Thank you in advance!
How can i check if there is only the “-” character in a cell in an excel. I want to use as a condition in an if activity
More precisely, if the cell contains only the “-” character is true, otherwise if the cell contains other characters besides the “-” character it is false
You can use Read Range Activity to read excel.
For each row activity for row iteration
then you can apply If Activity
you can give condition,
CurrentRow(0).ToString.Contains(“-”)
where 0 is Column Index , it depends on you from which column you want to iterate 0,1,2,3…
Thanks a lot for the answer! That’s what I did, as you say. But, in the if activity, in Then it tells me that it is true if the cell contains only the “-” character and if besides this character there are other characters.