Contains not working properly

I’m pretty new to Make and creating my first scenario.
I tried using the contains() function with variables I got from a webhhok, but kept getting false values, even if they were true, so I decided to do a basic check and I created a “Set Variable” module with a variable value of "{{contains(“Hello World “; " Hello”)}}” (see screenshot), and even here I get a false value all the time. I think I am missing something really basic with this function if it doesn’t find “Hello” in “Hello World”. What could be the issue?

Welcome to the Make community!

You have a space before the “Hello”, e.g.:

Hello

^^
Delete that space.

Hope this helps! Let me know if there are any further questions or issues.

@samliew

P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.

3 Likes

I cannot believe I made that mistake!
Thanks.