Do activity while a<3

studio

#1

HI, I want to make an activity which only repeat 3 times, so i create variable called a (int 32) with default value 0;

in a basic programming, I can do the increment like this:
while a < 3

do
activity

a=a+1

my question is, how to make the logic a=a+1 in UIPath? which function I should use?


#2

Hi Raspi_Erwin,

you can use the assign activity for this.
a on the left hand box, and a+1 on the right hand box.

Thanks


#3

@Raspi_Erwin use assign activity