Negation of boolean in NEON?

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

David Matějka
Moderator | 6260
+
0
-

Try this:

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

::not(%foo%)