Is there a `not in` function?

Hi!

The search does not work for such short words: if not in :wink:

I tested

{{ if not in (.Get "class") "test" }}

and several combinations with !.

This, of course, works as a workaround:

{{ if in (.Get "class") "test" }}
{{ else }}
ā€¦
{{ end }}

Thanks a lot.

Try

{{ if not (in (.Get "class") "test") }}
3 Likes

Brilliant, Regis. Thanks a lot.

(Shoot: I remember using something with a similar construction.)