Negation of boolean in NEON?

3 years ago

amik
Member | 124
+
+2
-

Hi,
is it possible to somehow negate a boolean in NEON? I want something like this:

parameters:
    foo: true

services:
    - Bar(!%foo%)

the above does not work, is there any other way? thanks.

3 years ago

David Matějka
Moderator | 5842
+
0
-

Try this:

- Bar("!?"(%foo%))

3 years ago

David Grudl
Nette Core | 6846
+
+3
-

::not(%foo%)