@Fox
d79e653c-983c-4f27-8c5c-d0eadc4b30e4-image.png
Thank you, my brother, your actions are really extraordinary and able to solve my problem according to my expectations, once again thank you, my brother.
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 clumsy
P.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)