# \[Solved\] How to use two or more nested “Count To” Loops

**URL:** https://community.thunkable.com/t/solved-how-to-use-two-or-more-nested-count-to-loops/2684297
**Category:** Questions about Thunkable X
**Tags:** beginner
**Created:** [November 6, 2023, 9:50am UTC](https://community.thunkable.com/t/solved-how-to-use-two-or-more-nested-count-to-loops/2684297 "2023-11-06T09:50:25Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![cseducator\_mindchamp](https://avatars.discourse-cdn.com/v4/letter/c/ee59a6/32.png) [@cseducator\_mindchamp](https://community.thunkable.com/u/cseducator_mindchamp)
#### Post date: [November 6, 2023, 9:50am UTC](https://community.thunkable.com/t/solved-how-to-use-two-or-more-nested-count-to-loops/2684297/1 "2023-11-06T09:50:25Z")

</div>

Hi Thunkers, I want to use two count nested loops. How can I use a counter variable for the inside loop as I suppose app variables wont work here, I am using DND mode,  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/f/ff5f883e04a47e998874c9dac1b41b16d7e2b1dd.png)  
Here I want to search a club name in stocks table and get its price in portfolio so I need a nested loop.

---

<div class="post-metadata">

### Author: ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)
#### Post date: [November 9, 2023, 7:17pm UTC](https://community.thunkable.com/t/solved-how-to-use-two-or-more-nested-count-to-loops/2684297/2 "2023-11-09T19:17:47Z")

</div>

Hello @cseducator_mindchamp 👋  
Here is an example of how you can build this:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/b/cba7d6e361fccad4aa6e798fa91df4e2e142fcaf.png)

---

<div class="post-metadata">

### Author: ![cseducator\_mindchamp](https://avatars.discourse-cdn.com/v4/letter/c/ee59a6/32.png) [@cseducator\_mindchamp](https://community.thunkable.com/u/cseducator_mindchamp)
#### Post date: [November 11, 2023, 2:32am UTC](https://community.thunkable.com/t/solved-how-to-use-two-or-more-nested-count-to-loops/2684297/3 "2023-11-11T02:32:26Z")

</div>

Thank you so much !

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)
#### Post date: [February 9, 2024, 2:32am UTC](https://community.thunkable.com/t/solved-how-to-use-two-or-more-nested-count-to-loops/2684297/4 "2024-02-09T02:32:49Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
