if some name exists in filename column then it has to execute one workflow or when filename column is empty then it has to excute anoher workflow so how to write if else condition for this?

Hello @sathish_Kumar6 ,
Use For each and loop through the rows then
use the If Statement :
If(Not String.IsNullOrEmpty(row(“file name”).ToString))
in then Part you can execute the required flow which will execute only if file path is present
Else block you can add the other logic which will execute only if file path is empty
Regards,
Rohith
checking if it is empty
String.IsNullOrEmpty(yourStringVar.Trim)
will return true when it is blank
When involved within a for each row loop
isNothing(row(“file name”)) OrElse String.IsNullOrEmpty(row(“file name”).ToString.Trim)
hi @ppr may i know how to implement this in my work flow i tried this but it shows some error

Hello @sathish_Kumar6 ,
2 Observations from the given screenshot.
-
As you already used If block hence you don’t have to write the If condition again, re-write it as Not (String.IsNullOrEmpty(row(“file name”).ToString))
-
‘row’ is not declared, this is because you haven’t used the for loop outside. Use for loop as give n below :

Regards,
Rohith
thanks bro it worked and may i know to master if else conditions in uipath?
