Why RPA Team do not design loop "for" same C#,C,java

Why RPA Team do not design loop “for” same C#,C,java…

for example: for( int i=0 ; i <20; i++){}
i already research on uipath but just foreach or foreach row

If you want to loop through a Integer value, you can simple use for each row giving the value as

Enumerable.Range(0,Value you want to loop).ToArray @SongDinh

That’s a good question
The current one we have in for loop is of two types like for each loop (for array, lists, collections) and for each row loop (for datatable)
May be we have three I can say with parallel for each activity as well
But either of these three use the same as per the below expression to certain extent like

—here in the expression I debtors the index usually as per the coding standards but in uipath we got it already a inbuilt one as it starts from zeroth index
So they work same on this…

—i<20 can be set inside the for each loop as well with a counter variable of type int32 inside the if condition
Like if condition meets it will go to THEN apart where we can use a break activity to get out of loop

And finally i++
For each loop (either for each or for each row loop) usually iterates one by one from the initial index of 0 until its final index or the counter we set intensionally

So all these implies that uipath rpa works the same way as per the mentioned expression but in a different way

Hope this would help you
Cheers @SongDinh

@HareeshMR the ToArray call is redundant since the IEnumerable returned is already a collection.

@SongDinh I second the method that Hareesh mentioned. If you want to write a for loop the more traditional way then you can use an Invoke Code activity and write the code the way you would in a standard IDE.