Multiple duplication of item in a list( Problem )

Hello community,
I have been trying to fix a particular problem for the past three days and i haven’t been able to fix it. I’ll explain each blocks in details so as to get my precised solution.
Block number one
What happen is that i created a variable called Index variable, so what i want to achieve is that in this variable i want all index to be stored here. I get all my data from airtable.
blocks (19)
Block number two

In this block i want to get the index of that particular item and store the index in the variable called index, now after storing the index in this variable Block number three will be called
. This blocks are self explanatory. i just want to point out my problem.
Block number four
This is where my problem comes in

Now for instance i have 1,2,5,6,7,8 indexes stored in the global index, i want to get the data of the indexes to show in my app. so i used for each number in list to perform this task. when i test rune it did work but it keeps multiplying itself instead of getting only the values of indexes 1,2,5,6,7,8.
What can i do to get this right.
I created a topic similar to thhis I need help on how to get the last index of reoccurring item

Try replace clock componet with procedure

I don’t think it’s the cause of the problem, because if there is no more item in the list both clocks will be disabled.

I don’t get this :point_down:

In when Clock4. Timer event you have enabled clock5 and disabled clock4 after add item block in the first if statement

And then under when Clock5. Timer event you have again enabled clock4

I am not sure, but I think this may be creating a kind of loop between both the timers and hence you are getting duplicate items in your INDEX variable.

for that reason i say:

This is exactly the solution to my problem, i don’t know if i am coding part of my blocks in my head and thinking i have added the blocks in my block. I actually said this in response to @bestprintsf

Thank you all for your contribution.

I didn’t enabled both clock to false that’s why it keeps duplicating.

Very good !!!
Again for that reason i suggest procedure, if don’t stop the clock you enter in loop …

Yeah, thank you so much.

That’s :point_up_2: what I told here :point_down:

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