How can you return from a function before its end?

Q

How can you return from a function before its end?

A

With the return command. If the command is used in the rootbranch of the script, the script execution will be terminated and cut short. After the next exceeded cycle time the system will jump into the script to the beginning.