Negation of boolean in NEON?

Notice: This thread is very old.
amik
Member | 118
+
+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.

David Matějka
Moderator | 6445
+
0
-

Try this:

- Bar("!?"(%foo%))
David Grudl
Nette Core | 8218
+
+3
-

::not(%foo%)