Specify complex conditions in when

Any ideas on how to specify conditions when annotation. I’m trying to specify 'repl {{and (not IsKurl) (ConfigOptionEquals "cloud" "aws")}}' this doesn’t seem to work. What is the proper way of specifying and, or conditions in when annotation?

There is an extra space after 'repl {{…

it has to be something like this

when: repl{{ ConfigOptionEquals “use_ingress” “1” }}