LTSpice IF – Using .param IF Statement in LTSpice


Super simple question here. Is it possible to use an if statement in a .param LTSpice directive? If so, what is the syntax? Shown below does not function.

enter image description here

Note that the .step function can not be used for my purposes, to the best of my knowledge, because I want to simulate a step response over time.

Best Answer

From what I understand, the .PARAM directive is evaluated at startup. The answer to your literal question is thus no.

You can, however, put the equation as the resistance:

enter image description here