In Is there a way to use logic operators in Blender Shader nodes? the answer provides a not operator however it uses a nand operator to achieve this which is too computationally expensive for my needs.
To give a little more information I need a not operator which will be used a few hundred times in my node tree, therefore it should be as computationally cheap as possible.
I know that the invert node does something like this but it inverts first, converts my float input into a color input, then inverts on all three channels and then converts back. Not exactly computationally cheap.
Is there a better way than this (preferably a single node solution)?