Hi Bubblers,
I’m stuck on something that’s probably quite simple… Within a workflow I’m trying to create a When expression - i.e. when this is true run this step of the workflow.
The Expression needs to compare two lists, and if any items from the first list appear in any of the items in the second list the condition is true.
This is the “When” expression:
user_listing’s user_group_genders intersects with Current page’s Listing Restrictions_Gender
user listing is the page name at which the state is set
user_group_genders is a state which contains a list from the Option Set Genders (this is the first list)
Current page’s Listing Restrictions_Gender is a database field that contains a list of Option Set Genders (this is the second list)
When I enter this expression it stays red - I cannot get it to resolve and I’m not sure what I’m doing wrong! Any help much appreciated!
Thanks so much @Baloshi69! That makes sense now! There isn’t an option to add >=1 at the end of the expression but I was able to add :count >=1 which I assume comes to the same thing. i.e. If 1 or more items are the same then the expression is true. Thank you so much for your help, I’ve been struggling with this for hours!
yes it is, sorry i forget :count as we need to valiate our Only When , so when we get a list we check is the empty or not, by using count >= 1 make the work, we can also use other option list is_empty.
If you every get stuck, dont hesitate pinging me. i would love to help, without any charge