ConfigurationRuleIfBlock.elseIfBranches Property

Parent Object: ConfigurationRuleIfBlock

PreviewThis functionality is provided as a preview of intended future API capabilities. You are encouraged to use it and report any problems or suggestions using the Fusion API and Scripts forum.

Because this is a preview of future functionality, there is the possibility that it will change, which will possibly break any existing programs that use this functionality. Because of that, you should never deliver any programs that use any preview capabilities. For a distributed program, you should wait until it has moved from preview to released state.


Defined in namespace "adsk::fusion" and the header file is <Fusion/ConfigurationRules/ConfigurationRuleIfBlock.h>

Description

Gets and sets the ordered elseIf branches. Evaluated in order after the primary condition fails; the first branch whose condition is true runs its thenBlocks (and the else branch does not run). Construct branches via ConfigurationRuleIfBranch.create.

Syntax

"configurationRuleIfBlock_var" is a variable referencing a ConfigurationRuleIfBlock object.
# Get the value of the property.
propertyValue = configurationRuleIfBlock_var.elseIfBranches

# Set the value of the property.
configurationRuleIfBlock_var.elseIfBranches = propertyValue
"configurationRuleIfBlock_var" Is a variable referencing a ConfigurationRuleIfBlock Object.
#include <Fusion/ConfigurationRules/ConfigurationRuleIfBlock.h>

// Get the value of the property.
std::vector<Ptr<ConfigurationRuleIfBranch>> propertyValue = configurationRuleIfBlock_var->elseIfBranches();

// Set the value of the property, where value_var is a ConfigurationRuleIfBranch.
bool returnValue = configurationRuleIfBlock_var->elseIfBranches(value_var);
"configurationRuleIfBlock_var" Is a variable referencing a ConfigurationRuleIfBlock Object.
// Get the value of the property.
propertyValue = configurationRuleIfBlock_var.elseIfBranches;

// Set the value of the property.
configurationRuleIfBlock_var.elseIfBranches = propertyValue;

Property Value

This is a read/write property whose value is an array of type ConfigurationRuleIfBranch.

Version

Introduced in version October 2026