List Contains Item

Hello there,

I do have a (hopefully) easy to answer question.

I have a list containing unique items like this:
372-Text, 826-Text, 927-Text, …

Now I want the List Items Content (372-Text), that contains 372. I tried List X contains 372. But that doesnt work and results in “no”. Filtering the list and using :First Item also didn’t work. Any ideas?

Thanks!

Hi there, @dev2… can you filter the list by using the :split by operator to split each item by a dash character and see if the first item in each split is 372?

Best…
Mike

Hi @mikeloc,

thanks for your reply! I have tried following, unfortuntately it doesn’t work as expected:


The filter somehow returns the whole list (I don’t know how this is possible, as only one item has the matching ID) and the “first item” obviously is always the same item.

Any ideas? Thanks!

I’m not sure if the expression will resolve, but can you add :first item after the :split by operator? Also, maybe try changing contains to is, and I’m not sure if you need :first item on the left. All of that could be nonsense, of course, because it’s hard to tell what’s going on without being able to poke around under the hood. If you want a second set of eyes on it, shoot a link to your editor my way (in a direct message), and I’m sure we can figure it out.

Hey, thanks! I was able to solve it:


The key was to use “This text” that behaves as “Current list item”.

This topic was automatically closed after 70 days. New replies are no longer allowed.