I have a problem in a condition inside an Excel Application Scope activity. I have to check if Cell A2 contains some text (two different texts) or if cell B2 is empty.
First I used 2 activities Read Cell To read the two cells in two string variables CellA2 and CellB2.
Then I used, still inside the Excel Application Scope, an If with the following condition:
CellA2.StartsWith(“text1”) OR CellA2.StartsWith(“text2”) OR CellB2 = “”
And I had the error in the subject, so I changed it to:
CellA2.StartsWith(“text1”) OR CellA2.StartsWith(“text2”) OR CellB2.IsNullOrEmpty
But still the same error. So I changed another time the condition to:
(Not CellA2.IsNullOrEmpty And (CellA2.StartsWith(“text1”) OR CellA2.StartsWith(“text2”))) OR CellB2.IsNullOrEmpty
And still the same error is popping up… What am I doing wrong?