setCondition
Set condition on variant choice
Description
setCondition(
sets the variant control condition specified by variantComponent,choice,expression)expression for the
choice choice on the variant component
variantComponent to choose the active variant choice. If the
condition is met on a variant choice, that variant choice becomes the active choice on the
variant component.
Examples
Input Arguments
More About
Version History
Introduced in R2019a
See Also
Blocks
Objects
Functions
addChoice|addVariantComponent|getActiveChoice|getChoices|getCondition|makeVariant|makeVariantAssembly|setActiveChoice|updatePortsFromChoices
Topics
- Overview of System Composer API
- Create Variant Components in Label Mode
- Decompose and Reuse Components
- Calculate Endurance Using Quadcopter Architectural Design
- Design Insulin Infusion Pump Using Model-Based Systems Engineering
- Add or Remove Variant Choices of Variant Assembly Component Blocks Using External File