Forum Discussion

efilipe's avatar
efilipe
Helper IV
9 years ago
Solved

If text doesn't contain character

Hi,   I know this work for me, but I also want to check if the text doesnt contain a character:   if (Text.Contains([DATE], "/") and Text.Length([DATE])=10) The date field is very messed up wi...
  • MarcelBeug's avatar
    9 years ago

    Text.Contains does return true or false already (and you are using it in your formula).

    You can reverse the ouput by putting "not " (lower case) in front of it, like in

    if (not Text.Contains([DATE], "/") and Text.Length([DATE])=10)