# How do i use 2 loops to place a image in each circles?

**URL:** <https://discourse.processing.org/t/how-do-i-use-2-loops-to-place-a-image-in-each-circles/34723>\
**Category:** Beginners\
**Created:** [January 19, 2022, 8:08am UTC](https://discourse.processing.org/t/how-do-i-use-2-loops-to-place-a-image-in-each-circles/34723 "2022-01-19T08:08:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anjel](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@Anjel](https://discourse.processing.org/u/Anjel)\
**Post date:** [January 19, 2022, 8:08am UTC](https://discourse.processing.org/t/how-do-i-use-2-loops-to-place-a-image-in-each-circles/34723/1 "2022-01-19T08:08:45Z")

</div>

I am suppose to insert a image in each circle, which to my understanding i could use this to make a grid  
for (var j = 0; j \< 4; j++ )  
{  
for (var i=0; i \< 8; i++ ){  
image(item, 467 + (i \* 70), 331 + (j \* 60));  
}

```
}

```

i was told to add a if varable and it could be the below pattern but i am not sure how, please help!  
 ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/b/be2022e6cf2593926e96b4da40f0cfce43f15997.png)

---

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [January 19, 2022, 9:59am UTC](https://discourse.processing.org/t/how-do-i-use-2-loops-to-place-a-image-in-each-circles/34723/2 "2022-01-19T09:59:32Z")

</div>

I count 11x7 or so in the grid

Where if comes in in my opinion is the first and last column: circles are missing

Say if first or last column draw only 1/3/5 (0/2/4/6) otherwise draw all - express this as ifs
