Choose between values in a function

I am not sure if I understand your problem correctly but you could use a local variable. You create two ‘assign’ nodes, each connected to an ‘exec’ pin of the ‘branch’ node and than return the value of the local variable.