How to make a Loop working?

Discuss RoboTask here
Post Reply
huawei
Posts: 1
Joined: Tue Dec 02, 2008 2:10 am

How to make a Loop working?

Post by huawei »

Please, if anyone could help me out with the loop in the statement I'm trying to make work.
I have the script as follows:

a. Some Actions after which goes step b.
b. IF A=B THEN should be repeated Actions made in step a. ----- How to make this Loop???
c. ELSE some different Actions and then STOP.

How to repeat Actions made in step a. while A=B ???
Thank You!
Last edited by huawei on Tue Dec 02, 2008 6:36 am, edited 1 time in total.
Oleg
Site Admin
Posts: 3202
Joined: Thu Jan 01, 1970 1:00 am
Contact:

How to make a Loop working?

Post by Oleg »

What is the problem?
You may use infinite loop.
Look at the following algorithm:

While loop True=True
   If {A} = {B} then
      do something
   else
      do something else
      break
   end if
end loop
Post Reply