Stopping a function from running.

Is there a away to stop a function from running? I have a function and at the top of that function there is a function running to check different conditions. If all those conditions meet, the function wont run. Is there anyway of doing this? Cause I don’t see one.

Thanks guys.

if conditions then return end