Material Function - Combine If with Switch

Just curious - When creating a Material Function, instead of having a separate input for a boolean to enable/disable a chain of other inputs, could an If be used on an input, and if say the value input = 0, it would set the switch to true, and if < || > 0 would set switch to true? The only option I find for a boolean is a function input and not a non-input boolean value…am I missing something or is this not possible?