How to check if a string contains strings

Hi community!

I have a 2 strings which are:

name1: Christopher (Chris) Holloway
name2: Christopher Holloway

I want to check if name1 contains name2.
I tried doing this:

but it always returns false, but clearly you can see name1 contains name2. Any help would be much appreciated.

Thanks in advance! :slight_smile:

Hi,

Can you try the following condition?

name2.Split({" "c}).All(Function(s) name1.Split({" "c}).Contains(s))

Regards,

Wow! worked really well! Thanks for this :slight_smile:

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.