simple question - Possible to stop a function?

Thats basically it, is it possible to stop a function using a line of code inside of it self. Basically i have multiple if statements inside 1 function, and if the first one returns true, i need it to stop playing through the rest of them. I guess i could use if else for the rest? if there is a piece of code specifically for this, that would be much cleaner in my mind. Thanks!

You just call “return” early. You can also “break” from if statements…

if{test == true)
{
foo.bar();
return;
}
else if
{
foo.bar2();
return;
}

Aawesome, thank you very much for the help.