Array operations on structures.

Hello everyone and @Mind-Brain !

In the end, I have made a custom loop, to have more control over my list and to be able to manage it better. I leave you an image:

The problem is that now when I perform the operation that I mark in orange, I want that result if it exceeds or equals a number that I set in the index of my list in a variable, that operation is cut in that index. For example:

  • My operation is 2 * 5 every second, I set it as limit 17, when it goes by 15 and the next second it is 20, before it is shown in my total variable, can I tell it to be 17 so that it never exceeds that number?

I have tried several times with a branch, but it doesn’t work.

Probably it is a nonsense, but I do not find a node that helps me.

I await your answer.

Thank you!