Why, oh why, does the LTspice Help not document simple things such as the conditional ternary operator (i.e. ? :) ?
This operator is supported by LTspice, at least for a behavioral source. It is converted to an equivalent "if" function in the Expanded Netlist.
It is used in SPICE models provided by some vendors (onsemi in my most recent example).
And yet it is nowhere to be seen in the LTspice documentation!
Please correct the LTspice documentation to reflect the complete syntax that LTspice accepts. We shouldn't need external sites or tribal knowledge to figure out what is valid LTspice input.
I understand there may be proprietary features or functions that are only for use by ADI, and hence undocumented, but surely the correct processing of the ternary operator does not fall into that category.
BTW, it's not a secret since Google's AI knows that LTspice supports the ternary operator even if the LTspice documentation doesn't.
Edit Notes
Simplify and clarify subject[edited by: DennisCote at 9:44 PM (GMT -5) on 5 Nov 2025]