# Condition contains "list of things"?

Hello, I’m trying to figure out a much better way of doing this, there must be something I don’t know yet to make this more efficient haha…

I would like to show this group when a user has gone through all the steps 1,2,3,4,5,6 (reason why “steps” is a list is if for some reason a user has missed a step they will be guided back to that missing number. What I’m trying to figure out is why i can not just do “doesn’t contain 1 , 2 , 3 , 4 , 5 , 6” instead of doing current user profile every time?

Im sure there is a better way that i dont know yet haha…

Thankful for any help

Hey @Orbit, how are you?

I take it this is like an onboarding sort of thing and the steps are things they have to do to learn the app? Or something along those lines?

Can’t you just use a count instead? (or maybe filter it then count it, depending on exactly what you’re trying to do?)

1 Like

Can’t you just use a count instead? (or maybe filter it then count it, depending on exactly what you’re trying to do?)

Hmm so you mean total count = 1+2+3+4+5+6? So if count is not = 21 then show message?

Yes correct!

No, I mean use :count (not sum)… to check if a particular number (or numbers) are in the list.

e.g. to check if no numbers from 1-6 are present in the list, instead of using:

`Current User's Profile's Step doesn't contain "1" and Current User's Profile's Step doesn't contain "2" and Current User's Profile's Step doesn't contain "3" and Current User's Profile's Step doesn't contain "4" and Current User's Profile's Step doesn't contain "5" and Current User's Profile's Step doesn't contain "6"`

which is what you’re doing in your first post…

Just use:

`current User's Profile Steps: filtered [this number ≤ 6]: count is 0`

If 6 is the maximum number of things the list can ever hold, then you can just use:

`current User's Profile Steps: count is 0`

It depends on exactly what you’re trying to do here.

Ahaa i get it, thanks will try that

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