Python function node editor

In [animation nodes] there is one.

https://github.com/JacquesLucke/animation_nodes/blob/bd9d9c75f845a3a35ddd69df17c028db2fcc76e7/animation_nodes/sockets/boolean.py

However in texture / material / compositor the only way is to hack it. I remembered trying something that sometime ago and then some solution with a simple node group. Perhaps now it would be a great opportunity to popularize the idea once again and get a jucy boolean node in the Math category.

Cycles Boolean Node (Not Shader) - #11 by const