# How to find the current VU iteration number in functional script

**URL:** <https://forums.eggplantsoftware.com/t/how-to-find-the-current-vu-iteration-number-in-functional-script/8630>\
**Category:** Eggplant Performance\
**Created:** [October 11, 2023, 9:24am UTC](https://forums.eggplantsoftware.com/t/how-to-find-the-current-vu-iteration-number-in-functional-script/8630 "2023-10-11T09:24:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mustakm](https://forums.eggplantsoftware.com/letter_avatar_proxy/v4/letter/m/ecb155/32.png) [@mustakm](https://forums.eggplantsoftware.com/u/mustakm)\
**Post date:** [October 11, 2023, 9:24am UTC](https://forums.eggplantsoftware.com/t/how-to-find-the-current-vu-iteration-number-in-functional-script/8630/1 "2023-10-11T09:24:05Z")

</div>

I need to know the interation number of current VU in eggplant functional programmatically. This information is available in TestContol log file. How to get this info in functional during run time.

---

<div class="post-metadata">

**Author:** ![mustakm](https://forums.eggplantsoftware.com/letter_avatar_proxy/v4/letter/m/ecb155/32.png) [@mustakm](https://forums.eggplantsoftware.com/u/mustakm)\
**Post date:** [October 13, 2023, 12:08pm UTC](https://forums.eggplantsoftware.com/t/how-to-find-the-current-vu-iteration-number-in-functional-script/8630/2 "2023-10-13T12:08:42Z")

</div>

I found the answer here: VirtualUserScript contains required public methods like getNumberOfIterations(),  
getCurrentIteration()
