Create flow control functions

Hi,

Is it possible to create functions that contain flow control (branches, etc.) and end up leading to different named Return nodes depending on the data fed to the inputs?

Thanks,

Hi Arcade.

Functions support Branches by default, you can freely use them.
You can add multiple “exits” to your function by right clicking and searching for ‘return’, but these return nodes always have the same outout variables.

You might want to look into Macros, which are a kind of function but support multiple different “exits”.

Multiple execution pins are used in macros. For example built-in Loops are macros.

74239-macro.png

1 Like

Excellent! Macros it is then.
Thank you both kindly,