Hi there Ledi!
I think what you are looking for is CommutativeAssociativeBinaryOperator = “true” inside the UFUNCTION() macro. CommutativeAssociativeBinaryOperator Indicates that a **BlueprintCallable **function should use the Commutative Associative Binary node. This node lacks pin names, but features an “Add Pin” button that creates additional input pins.
For future reference as well, you can look at the UE4 source code on github (just need to connect your github to your epic games account) to find out exactly how the nodes shown in your screenshot work in code. For instance, the logical AND of two values code looks like this:
UFUNCTION(BlueprintPure, meta=(DisplayName = "AND Boolean", CompactNodeTitle = "AND", Keywords = "& and", CommutativeAssociativeBinaryOperator = "true"), Category="Math|Boolean")
static bool BooleanAND(bool A, bool B);
Hope this helps, have a great day!