Fly input

My requirement is i need to run the loop 50 times
Before executing the loop is there any code in eggplant to ask how many times to run the script.

suppose i need to run 50 times
start the script
it should ask how many times to run the loop
then I enter 50
the loop will execute 50 times

Please help me …

Hi Vitalu

The code below should work for you.

Ask “What is N?” // this will launch a dialog box where you can type in the number of times the repeat loop needs to be executed
Put it into n
Repeat n times
// code you want to execute
end Repeat

Let us know if you have any queries.