Native Ignition expressions don't have any ability to loop, but @pturmel's (free) Integration Toolkit module should "just work" with the meta jsonValues node talked about here.
So, in theory, where({path/to/tag.jsonValues, someCondition) could work for the vague task you're describing.