Created "Switch" node for Flow#346
Merged
MothDoctor merged 4 commits intoMothCocoon:5.xfrom Feb 21, 2026
Merged
Conversation
This code was lost during the merge with mainline flow. Restored it to fix an assert with addons in editor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
[Flow] Updated FlowNode_Branch: AND/OR selectability and BranchCase support
Branch node can now be configured with AND/OR for the top-level combination rule (default is still AND)
Branch node can now have BranchCase AddOns at its root addon level, these will be evaluated and can trigger prior to evaluating the root predicates (which serve as the "else" case for this sort of configuration)
BranchCase adds a switch/case-like capability where each BranchCase can have its own output exec pin, if that case's predicates pass
CR - BJarvinen, ECalder
[Flow] Switch Case AddOns' names are authorable
If you set the name, it will match the pin 1:1 (unless duplicates, see below)
Default case name (and pin name) is "Case".
Duplicates are disambiguated with numbers appended.
Sets the title to the pin name, so it's easier to match the pin to the case
CR - JDurica, BJarvinen