The .LET statement defines a named expression that can be referenced later in the netlist. Unlike .PARAM, .LET stores the expression itself (not just the evaluated value), making it useful for deferred calculations.
.LET <name> <expression>
| Parameter | Description |
|---|---|
name |
Name of the expression |
expression |
A mathematical expression (may use {} delimiters) |
.LET power {V(OUT)*I(V1)}
.LET gain {V(OUT)/V(IN)}
.PARAMstores a parameter value that is evaluated at parse time and used for component values..LETstores a named expression that can be evaluated dynamically during simulation, often used with.MEASor other post-processing.