Other list total by list

Hello. How can I sum the numbers in the List1 indexes that correspond to those with zero (0) in List 2 elements?
Sample ;
List1: 50,100,200,100
List2: 2,0,0,3
The result I want in these lists is 100 + 200 = 300.
I’m trying to find 300 but I’m finding 100.
This happens because I have only 1 index. I couldn’t find how to get more indexes.

Try something like this


Yes, I did almost the same:


Suggestion: It will be better if you set the label text after the loop instead of the loop.


Thank you so much. The problem is solved thanks to you. @bodymindpower , @dora_paz :thumbsup: :thumbsup: :hugs:

1 Like

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