# If "occurence" is more than once

**URL:** https://community.thunkable.com/t/if-occurence-is-more-than-once/1360624
**Category:** Questions about Thunkable X
**Tags:** beginner
**Created:** [June 23, 2021, 9:09pm UTC](https://community.thunkable.com/t/if-occurence-is-more-than-once/1360624 "2021-06-23T21:09:45Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![mimostel](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/mimostel/32/107661_2.png) [@mimostel](https://community.thunkable.com/u/mimostel)
#### Post date: [June 23, 2021, 9:09pm UTC](https://community.thunkable.com/t/if-occurence-is-more-than-once/1360624/1 "2021-06-23T21:09:45Z")

</div>

Hello.  
Didnt found a solution for my issue, so here i am.  
I have a list, lets say:  
0 2,5  
1 2,7  
2 2,1  
3 2,5  
4 2,3  
5 2,5  
6 2,0 and so on  
and i need to find all values, lets say equal to 2,5 and replace with something else  
“find # occurence” in lists`s blocks doesnt help me, as i can select only "first", "last", "random" and not all. Im not looking for a loop that evaluates every list`s item … or maybe this is the only solution ?  
thank you.

---

<div class="post-metadata">

### Author: ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)
#### Post date: [June 23, 2021, 9:15pm UTC](https://community.thunkable.com/t/if-occurence-is-more-than-once/1360624/2 "2021-06-23T21:15:16Z")

</div>

Yes. You’ll need to loop as the efficient and. Or text process.

---

<div class="post-metadata">

### Author: ![jane](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jane/32/27575_2.png) [@jane](https://community.thunkable.com/u/jane)
#### Post date: [June 24, 2021, 9:06am UTC](https://community.thunkable.com/t/if-occurence-is-more-than-once/1360624/3 "2021-06-24T09:06:20Z")

</div>

Hi there,

Just to elaborate on Jared’s recommendation to do this with text processing:

You can start by converting your list to text with a [list](https://docs.thunkable.com/v/drag-and-drop/lists) block:

 ![Screen Shot 2021-06-24 at 10.01.06 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/5/2548b7de0bd2f9c58d0346a4d4cd5f8753d99ddd.png)  
NOTE: I used a comma as a **delimiter** here. This is the character that separates values in your list. Since your list items contain commas, you should use another delimiter, like a semi-colon **;**

Then replace whatever value you want to replace in this text with [text](https://docs.thunkable.com/v/drag-and-drop/text) blocks:

 ![Screen Shot 2021-06-24 at 10.01.17 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/5/c50c96e1504f2415e7c9528269b79ad4188855c8.png)

Then convert this text back to a list:

 ![Screen Shot 2021-06-24 at 10.01.32 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/b/0b29755d465ed7780fa2363a69030bbdef570ad0.png)  
Make sure to use the same delimiter as earlier!

Then you can set your List Viewer to display this new list:

 ![Screen Shot 2021-06-24 at 10.01.45 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/c/3c379121310909a1149192d4fc16293516a6f77f.png)

You can see a project that uses these blocks [here](https://x.thunkable.com/projectPage/60d44903a263b10012feea40)

---

<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:20pm UTC](https://community.thunkable.com/t/if-occurence-is-more-than-once/1360624/4 "2024-11-08T13:20:09Z")

</div>


