I'm not 100% sure why you think that you want to get a function to perform an action yet not return anything ????
Hmmm functions are meant to make performing actions easier.
Think about it this way. If you pass 2 numbers to a function and the function adds them together then how do you know what the result is?
Answer you have to return the result of the two numbers being added together.
If you don't return anything from the function (even a true/false) then there would be no point in having the function in the first place!
HTH
GM