i want to test if a delegate input is connected.
if yes - ok, use that
if not - use a default delegate that is provided by the node itself
usecase is writing nodes that could be extended via delegates, but don’t fail if no delegate is connected.
@azeno pointed me to the optional datatype which solves most of the puzzle, but now a user has to deal with optional and cannot just connect a delegate. also the node isn’t useable as region.
delegates.vl (36.3 KB)
this patch also contains a small sidequest for the brave ones :)