list containing any item of another list

Hi, wondering if there is any cleaner way to see if two lists have 1 or more intersecting values?

the following works for me

returns true

{{ [‘value1’, ‘value2’] | intersect([‘value1’, ‘value2’]) | length > 0 }}

returns false

{{ [‘value3’, ‘value4’] | intersect([‘value1’, ‘value2’]) | length > 0 }}

just wondering if there is a cleaner looking solution that I am not aware of as I am using it frequently.
something like would be handy.

Hello Adam E,

You have got the implementation correct. Intersect is the correct method to be used.
You may refer the playbook mentioned below: