Get n values out of textlist

I have a list consisting of values where the first “@Word”-Value would be the parent DocID. I want to get all list elements where "@Word( _list; “-delimiter-”; 1) matches the value of my DocID in the parent Document. (Those documents are not really children of the parent Document, but they have a hierarchical ID).

So how do I get those n values out of my list that match my search criteria? Any help would be appreciated.

Subject: Get n values out of textlist

I’m not sure I fully understand your requirements, but have you tried @keywords?

Subject: Sure: nList := DocID + @Trim(@Right(_List; DocID));