Hi All, I am try to do something like the following in a spectre library file: // parameters useothermodel=0 if (useothermodel==1) { model mymodel othermodel } else { model mymodel normalmodel } // But spectre gives me a syntax error on the line after "model mymodel othermodel". A line which should not even have been read ! It turns out that instances or subcircuits are accepted in an if-then-else statement, but not models (dammit!). In my real case, there are many (many) models to be defined inside these if statements. Besides, the files that bear the "model" statements are foundry-owned, so I should keep my hands off of that. And the structure of the library has nested if-then-else's , includes and subsections ;it is more complicated than the above example. So I cannot use an "inline subckt" trick. Can anyone think of a way around this limitation ?