Could I get some help with creating an "if, else if, else" blueprint macro?

I’m trying to make a blueprint macro that combines multiple branches into an “if, else if, else if, … else” format. Easy enough, but I was hoping to make its length dynamic in much the same way sequence or switch nodes work.

The end goal is to make a single macro with as long a chain of branches as desired, starting with 2, and being expanded with the “Add Pin (+)” button. I couldn’t find a solution within the blueprint editor so, with any luck there’s a C++ method.

If this is impossible to make with the current tools hopefully the UE devs could implement something like this in the future.

Example:

6719-ifelse2.png

I didnt exlore this yet, but check K2_Node class And related classes in source code, theres where custom programed nodes are contained

Thanks, I’ll give it a look.