I suppose you have different branches and want to get and use the first available input from any of them. So, you can try to use Merge node with append mode first and then extract the first item either with a code node or set node. To be more clear, here’s an example.