Count the number of times the value is found in an array or dictionary and store it in a variable
T Tedskayteur Member Dec 12, 2022 #1 Count the number of times the value is found in an array or dictionary and store it in a variable
FrameXX Well-known member Dec 12, 2022 #2 These action blocks might help you: https://www.macrodroidlink.com/macrostore?id=14967 https://www.macrodroidlink.com/macrostore?id=14966 Last edited: Dec 12, 2022
These action blocks might help you: https://www.macrodroidlink.com/macrostore?id=14967 https://www.macrodroidlink.com/macrostore?id=14966
MacroDroidDev Administrator Staff member Dec 12, 2022 #3 I assume you are asking how to do this? You can do it something like: Variables ====== Sum ValueToFind Actions ===== Set variable sum = 0 Iterate Dictionary If (Variable ValueToFind = dictionaryValue) Set variable sum = sum + 1 End If End Loop
I assume you are asking how to do this? You can do it something like: Variables ====== Sum ValueToFind Actions ===== Set variable sum = 0 Iterate Dictionary If (Variable ValueToFind = dictionaryValue) Set variable sum = sum + 1 End If End Loop