Hello, there!
Upon research on the community, I was unable to find any posts regarding it.
Currently, I have a boolean variable which is validating multiple words in a string. I’ve successfully solved this by verifying each word with a separate contain function for each of the words on the sentence.
Although I’ve had a successful solution, I’m itching to know if I’m failing to nest multiple values in a single contain function due to my bad syntax or whether it is not available?
You can observe in the image both logics. If I test it with any missing truthy arguments, the faulty logic continues to return true until there is no match whatsoever.
Test argument: qualquer link pagamento
Any insights here?
Codes:
Pagamento (Success): {{if((contains(lower(179.result); "suave") | contains(lower(179.result); "querido") | contains(lower(179.result); "completo")) & contains(lower(179.result); "enviar") & contains(lower(179.result); "link") & contains(lower(179.result); "pagamento"); "true"; "false")}}
Expected logic (doesn’t work): {{if(contains(179.result; ("suave" | "querido" | "completo") & "enviar" & "link" & "pagamento"); "true"; "false")}}
Thanks in advance!


