Text Substitution Feature?

I’ve used the .param directive quite extensively. I find it extremely useful especially for multi-stepped sims.

Is there a little-documented or undocumented feature where I can use text substitution in the sim?

For example:

I realize that the .param does not provide text substitution directly. I only use it here for illustration purposes.

The goal illustrated here is to only uncomment one substitution replacement at a time to run a simulation.

Any ideas?

Len

To all,

One potential but not optimal solution is the following:

Here, the “SIN 0 1 1K” is commented and added as as the 2nd attribute.

This compiles and works.

Later that attribute can be uncommented and the 1st attribute commented.

Not programmatically elegant but does appear to work correctly.

Any improvements?

Len