Scripting help with queue tree.

Im being a real doofus here.
All the examples im finding use a from 1 to whatever number parsing style to move through multiple queues or firewall rules and perform a check with a conditional action.
How do i make a mikrotik script parse a bunch of queues in a queue tree that only use a text label that doesnt include some integer?

e.g.
Queue tree parent
|
----> user bob smith
----> user jane doe
----> etc

i dont think your question is clear eough!