# Functions hard to make it work in a loop

**URL:** https://community.thunkable.com/t/functions-hard-to-make-it-work-in-a-loop/1202198
**Category:** Questions about Thunkable X
**Created:** [April 2, 2021, 11:20am UTC](https://community.thunkable.com/t/functions-hard-to-make-it-work-in-a-loop/1202198 "2021-04-02T11:20:57Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![team.eps.numeriqueg](https://avatars.discourse-cdn.com/v4/letter/t/5f8ce5/32.png) [@team.eps.numeriqueg](https://community.thunkable.com/u/team.eps.numeriqueg)
#### Post date: [April 2, 2021, 11:20am UTC](https://community.thunkable.com/t/functions-hard-to-make-it-work-in-a-loop/1202198/1 "2021-04-02T11:20:57Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/a/5a355169d122b9192a81fd8bce0eb0232a8e5a43.png)

Hello I have a big problem to make the loop work as I want it to.  
I would like here that every second, the location sensor updates the position and then allows you to make a loop: if then do

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/4/3453af29ec28f8057450385dc967b08ab2916f99.png)

I wish that every second the location sensor captures the point where we are and depending on where we are, this triggers OR not the timer. As soon as we leave this zone the timer must stop.

Help me please.  
Thanks

---

<div class="post-metadata">

### Author: ![tony.ycy.program](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tony.ycy.program/32/100153_2.png) [@tony.ycy.program](https://community.thunkable.com/u/tony.ycy.program)
#### Post date: [April 2, 2021, 11:27am UTC](https://community.thunkable.com/t/functions-hard-to-make-it-work-in-a-loop/1202198/2 "2021-04-02T11:27:43Z")

</div>

Can you share program for me?  
I’ll help you.

---

<div class="post-metadata">

### Author: ![team.eps.numeriqueg](https://avatars.discourse-cdn.com/v4/letter/t/5f8ce5/32.png) [@team.eps.numeriqueg](https://community.thunkable.com/u/team.eps.numeriqueg)
#### Post date: [April 2, 2021, 11:28am UTC](https://community.thunkable.com/t/functions-hard-to-make-it-work-in-a-loop/1202198/3 "2021-04-02T11:28:25Z")

</div>

Yes i do but it’s very novice…

---

<div class="post-metadata">

### Author: ![team.eps.numeriqueg](https://avatars.discourse-cdn.com/v4/letter/t/5f8ce5/32.png) [@team.eps.numeriqueg](https://community.thunkable.com/u/team.eps.numeriqueg)
#### Post date: [April 2, 2021, 11:29am UTC](https://community.thunkable.com/t/functions-hard-to-make-it-work-in-a-loop/1202198/4 "2021-04-02T11:29:31Z")

</div>

[https://x.thunkable.com/copy/41d5b1c257afe96b733006b823505a86](https://x.thunkable.com/copy/41d5b1c257afe96b733006b823505a86)

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [April 2, 2021, 11:31am UTC](https://community.thunkable.com/t/functions-hard-to-make-it-work-in-a-loop/1202198/5 "2021-04-02T11:31:45Z")

</div>

Avoid using similar names.  
You have a timer component named “timer1” and a function named “timer1”.

---

<div class="post-metadata">

### Author: ![tony.ycy.program](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tony.ycy.program/32/100153_2.png) [@tony.ycy.program](https://community.thunkable.com/u/tony.ycy.program)
#### Post date: [April 2, 2021, 11:39am UTC](https://community.thunkable.com/t/functions-hard-to-make-it-work-in-a-loop/1202198/6 "2021-04-02T11:39:22Z")

</div>

I think it may not be possible to only need so many programs per second!

 ![圖片](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/a/5ae19c0f41989bead0b7efd69b9dbedf33de2264.jpeg)

---

<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 8, 2024, 1:25pm UTC](https://community.thunkable.com/t/functions-hard-to-make-it-work-in-a-loop/1202198/7 "2024-11-08T13:25:37Z")

</div>


