Is there a way to vary resistor R4 in the picture based on if the switch is on or off? For example, if S1 is off, I want R4 to be 10 Ω, and if it's on, I want R4 to be 100 Ω, and if S2 is on as well, another different R4 value.
Is there a way to do this if/else operation in LTspice?