LTSpice "Error:undefined symbol in:" problem
I'm sure there is better way to achieve your goal of modeling switching behavior, but here is an example of using behavioral voltage, &quot;bv&quot;, with output dependent on the voltage of another node and dependent on custom function.