C++ create a node with "Add pin" button

Hi. I couldnt find any useful information about it. Im searching for something like this(screenshot 1). But all I found is an advice “Create input array”(screenshot 2)…but…its not the same thing. So. Any ideas?

I am also interested in this, have you found the answer?

Best way to search how something been done is too look up in engine source code, all C++ modules are same regardless if they in enigne source code or your game project, most of blueprint nodes in engine are done same way as you doing it in game code, so you can look up how things been done and do it in your code. So in this case, all default math nodes that blueprint is using is in UKismetMathLibrary, so go to UE4 github and search “filename:KismentMathLibrary” and you open header file it finds and there you can find this:

/** Returns the logical AND of two values (A AND B) */
UFUNCTION(BlueprintPure, meta=(DisplayName = "AND Boolean", CompactNodeTitle = "AND", Keywords = "& and", CommutativeAssociativeBinaryOperator = "true"), Category="Math|Boolean")
static bool BooleanAND(bool A, bool B);

And you can see CommutativeAssociativeBinaryOperator = "true" meta specifier which mostlikely is the thing. You can figure your that this specifier will make call function multiple time in sequance for each pin, while one input being result of last function call (i assume 1st one) and 2nd being value on the pin. Most likely they need to be named A and B to make it work as specifier code may search for argument names