How to make a conditional that checks if a list returned from a "Query a collection" action contains an item?

Hi! I'm trying to make a condition in an action chain that checks if the currently logged in user shows up in the list of Friends of another user. In the action chain, the first action does a "Query a collection" for the user in the search results and is referred to by the action output name "friendsOfOtherUser." However, in the conditional below that action, I'm trying to check if the List returned by the "friendsOfOtherUser" action output contains the current authenticated user but the available options for what to do with that list doesn't include "List Contains Item."

How do I check if the list returned from an action output contains the current authenticated user?

1
2 replies