How to put ":" into if statement in filter?

I am currently trying this:

if ":" in dst {

I also have tried ":" and ':' (backslash before the colon) but neither worked.

Is it possible to still try this?

This is already the correct way and should work.

if ":" in field { do something }

Can you share an example of your message and what you are trying to do?

I would expect that to result in an exception from the configuration compiler. Try if ":" in [dst] {.

1 Like