Multi trace and response channel and first index

I am sending a multi trace and I want to get hit objects, which blocks my custom collision channel. and if my trace hits more than 1 object with my custom collision channel I want to get first of them (index 0). How can I do this?

Lets say my own collision channeln is :X

Multi trace hits more than 1 objects. Some of them are not X but some of them are X. I want to find which of them are X and which is the first hitying object with X

Either have the undesired meshes ignore X or get the first one that fits the criteria:

For Loop With Break would be more suitable. Would that work?

Lets say my own collision channeln is :X

Multi trace hits more than 1 objects. Some of them are not X but some of them are X. I want to find which of them are X and which is the first hitying object with X