Verify which output pins (created with ExpandEnumAsExecs) are connected on graph.

I have an UFUCTION that I am using to create my custom BP nodes:

UFUNCTION(BlueprintCallable, meta = (ExpandEnumAsExecs = "Branches", Latent, LatentInfo = "LatentInfo", WorldContext = WorldContextObject))
	virtual void MyNode(EOptionEnum& Branches, UObject* WorldContextObject, struct FLatentActionInfo LatentInfo, ...)

Inside this method I can switch execution to given PIN output by:

Branches = EOptionEnum::OptionA

But, how to check if given output is connected on graph with any node (or if it’s “dead end” in BP)?

From there I don’t believe you can.
Why does it matter? Can’t you just fill it in and let the blueprint deal with it?

But:
If you built a fully custom K2 node, you could do that sort of check on the pin, at least in the Editor.

Slightly less involved would be using a type derived from UBlueprintAsyncActionBase instead of the FLatentActionInfo. In that case you would have delegate members for the output pins instead of the expanded enumeration. You would be able to check if anything is connected to it by checking the ‘IsBound’ member function.