In case anyone else encountered this problem. You have to edit your function and check the "has return value" box. Then your return will work. After this you have to use "Call Function" again and now you have a new field for saving results.
Please help me with the functions.
-
How can I make it so that after calling a function, the function is executed and then returns back to main? I've tried everything, but the function simply stops the entire script after completing.
I have more code in my code after calling the function. It works like this for me: the code is executed in main, then it sees the function, starts executing the function, and all the code stops executing after the function is completed. -
@clarabellerising no, I've been programming a lot, and I immediately thought of this. I've also tried calling an asynchronous function and waiting for the result, but for some reason, after the function completes, the entire program stops working.
-
@clarabellerising God, I should have just recreated the function with the return value, and then return really starts working.)
and when you create a function without a return value, and you do the return yourself, it doesn't return anything, but maybe I'm just clumsyP.S. for some reason it only works with a simple function, but when I insert my own function, it stops working again
-
@clarabellerising thank you so much, it's just the wrong line, I'll find out why)