How to use loop conditions without using Uipath activities like If,While,Dowhile

How to use loop conditions without using Uipath activities like If,While,Dowhile? Any Alternative.?

Hi, welcome!

Sure - you can use a flow decision! Or Retry Scope! Or For Each! Repeat even!

Why would you not use If/While/DoWhile though? What are your requirements?

1 Like

Use flow chart

Recently I gave interview, There I got this question

Oh! Interesting. How did it go? What answer did you give?

Even I am also shocked to… I gave answer like we can use invoke code …

Use Invoke Code and put the If condition in there, hahaha - brilliant :smiley:

I guess people value code readability and clarity higher nowadays, especially with RPA. I have seen some monstrosities of workflows with several levels of nested If conditions. Maybe that is why they were asking how to do conditions without If!

Using Flowcharts and Flow Decisions or even Flow Switches are suited much better to develop readable code when process logic is getting complex :wink:

Good luck with your endeavors

1 Like

Ha ha ha … Cheers…Thank you for quick response

1 Like