Basic question; How to invert toggle?

Voorjeweetmaarnooit's icon

Very simple, and most likely just missing a basic function somewhere. Now I'm using scale 0 1 1 0 to invert toggles, but this seems like overkill. I've noticed I can use -1 for some as a replacement, but would this work as a general replacement for scale 0 1 1 0, where there's only 1 and 0 going in? Or is there a specific function or trick for this?
Thanks!

Timo Rozendal's icon
Voorjeweetmaarnooit's icon

Exactly what I needed! Thanks. It's so easy to overlook things.

Lê Quan Ninh's icon

the external [ ! ] from Peter Elsea's Lobjects does the same.

broc's icon

Or you can also use [!- 1].

Michael Sonnenberg's icon