# Fly input

**URL:** <https://forums.eggplantsoftware.com/t/fly-input/3241>\
**Category:** Eggplant Functional\
**Created:** [February 26, 2013, 6:40am UTC](https://forums.eggplantsoftware.com/t/fly-input/3241 "2013-02-26T06:40:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vitalu](https://forums.eggplantsoftware.com/letter_avatar_proxy/v4/letter/v/e95f7d/32.png) [@vitalu](https://forums.eggplantsoftware.com/u/vitalu)\
**Post date:** [February 26, 2013, 6:40am UTC](https://forums.eggplantsoftware.com/t/fly-input/3241/1 "2013-02-26T06:40:33Z")

</div>

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 …

---

<div class="post-metadata">

**Author:** ![Abhijith](https://forums.eggplantsoftware.com/letter_avatar_proxy/v4/letter/a/82dd89/32.png) [@Abhijith](https://forums.eggplantsoftware.com/u/Abhijith)\
**Post date:** [February 26, 2013, 7:13am UTC](https://forums.eggplantsoftware.com/t/fly-input/3241/2 "2013-02-26T07:13:06Z")

</div>

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.

Abhijith
