I've got `true` and `false` commands on my CMD (as part of Git Bash) for testing purposes.

So here are the basics:

```
C:\>true

C:\>echo %errorlevel%
0

C:\>false

C:\>echo %errorlevel%
1

```

---

The above commands and their exit codes are expected (`0` on `true`, `1` on `false`).

Now, I'm negating the commands by:

```
C:\>true && false

C:\>echo %errorlevel%
1

C:\>false || true

C:\>echo %errorlevel%
0

```

This also works as expected.

---

Now, how I can combine two conditions at the same time (`&&` and `||`) to negate the command?

Assuming I don't know the exit code of the command, I'd like to do something like:

```
SOMECMD && false || true

```

Here is my attempt:

```
C:\>true && false || true

C:\>echo %errorlevel%
0

C:\>false || true && false

C:\>echo %errorlevel%
1

```

The above results are not as expected. So `true` after negation is still `true`, and `false` is `false`.

So what's the easiest way to negate command not knowing its exit code?

Ideally in the same line. Something equivalent to `!` in Linux (e.g. `! true` and `! false`).