Hello everyone. I'm trying to build an action that can, from a list of scenes (each one with a category="something" or "null" variable), know how many categories there are in the list, create new variables for every type of category and within those variables count how many of each category there are. I'll give you an example:
FROM THE LIST:
<scene name="0" category="null"/>
<scene name="1" category="A"/>
<scene name="2" category="B"/>
<scene name="3" category="A"/>
<scene name="4" category="A"/>
<scene name="5" category="A"/>
<scene name="6" category="C"/>
<scene name="7" category="B"/>
In the end the action would have to create these variables with these values (Note that I wish the action to create the variables without me having to tell it which categories there are, and that the order of the scenes is irrelevant):
A="4" B="2" C="1"
I've been trying to build it with a for action but so far I have been unsuccessful, ¿any ideas?