Found workaround. Use LERP function and pass it scalar hard 0 or 1, then you can use set scalar from python. Would work for something like replacement to “isMetallic?” bool or “isAlpha?”. Might not be suitable for all applications tho.
Original: controlling a StaticSwitch with a Float/Scalar/Constant 1 in a Material - #2 by Lovecraft_K