# How to loop over array to change input of request?

**URL:** <https://community.postman.com/t/how-to-loop-over-array-to-change-input-of-request/17733>\
**Category:** Help Hub\
**Tags:** variables\
**Created:** [November 16, 2020, 3:06pm UTC](https://community.postman.com/t/how-to-loop-over-array-to-change-input-of-request/17733 "2020-11-16T15:06:04Z")\
**Posts on this page:** 1\
**Page:** 2

<div class="post-metadata">

**Author:** ![deep-pm](https://avatars.discourse-cdn.com/v4/letter/d/edb3f5/32.png) [@deep-pm](https://community.postman.com/u/deep-pm)\
**Post date:** [September 14, 2023, 7:19pm UTC](https://community.postman.com/t/how-to-loop-over-array-to-change-input-of-request/17733/22 "2023-09-14T19:19:39Z")

</div>

Hello,

I have a question in this thread, i am also trying to run a loop and inside the loop i have if - else conditions where based on the condition it will call the put requests. so when i run the collection do i have to include other two put calls as well or only select the get call where i have defined if-else statement? meaning if “if” statement pass it calls 1st put call and else will call 2nd put call.

[Previous page](https://community.postman.com/t/how-to-loop-over-array-to-change-input-of-request/17733.md?page=1)
