Hi All,
I would like to know how to give expression in “if condition”.
Condition is : if start day or end day is empty then select the day whichever is non-empty.
For example :
![image](https://global.discourse-cdn.com/uipath/original/4X/f/7/c/f7cd5ae11d9053033196ca2bfac73022f0b46cd1.png)
So here , Robot should select Wen, Sut, Fri
Please help me with this.
Thanks in Advance:-)
Anil_G
(Anil Gorthi)
2
Hi @Vaishnav_Tej
Say your are using a for loop for each row in datatable with these columns
then inside for loop you will have if and condition would be(Assumption id either one will have data)
IsNullOrEmpty(CurrentRow("Start Day")) AndAlso CurrentRow("Start Day").ToSTring.Trim.Equals(String.Empty)
And - Will check for both conditions
AndAlso - Will check the second condition only if the first condition is satisfied
This checks for Start Day is empty or null or is blank
So in then Use
CurrentRow("End Day").TOString
and in else
CurrentRow("Start Day").ToString
Hope this helps
cheers
Hello @Vaishnav_Tej
You can use the Else If activity in UiPath.
Thanks
For Simple Answer
Just check if StartDay is empty then write EndDay else write StartDay.
Easy