Int32 Datatype for loop

activities
studio

#1

Hi,
I want INT datatype value one bye one in for loop:-

any solution for this?


#2

Hi @sams,

Foreach is always for collections only, For loop only can be done with integer, which is not supported in UiPath.

You can use Do while instead of this.

Check this link for Do while


#3

Hi sams,
You cannot loop through integer,it should be a datatable or datarow[] @sams


#4

You can use while loop. See example in studio. Or here you can put Enumerable.Range(0,5) instead of your variable “a”