designspace.Condition#
- class designspace.Condition(target: str, expr: BoolExpr, params: frozenset[str])#
Bases:
objectWhen one parameter is active, as resolved IR.
Produced by .when(), and injected automatically by struct and choice nesting: a variant’s payload parameters each get a condition on the discriminator. A parameter with no condition is unconditionally active.