Skip to content

End_Function

See Also: Function, Function_Return

Purpose

To terminate a function-definition block.

Syntax

Function {name}…
…
End_Function

What It Does

End_Function defines the end of a function definition block that begins with a Function command. An End_Function is required for each Function command.

End_Function does not use any arguments.

The End_Function command defines the end label for the Function command when it is registering the function with the runtime system. The system executes the Function command and then jumps to the next command line beyond the End_Function command.

The End_Function command will return a zero if it is ever actually executed. In a properly designed function, this will never happen. Rather, execution of the function will be ended with a Function_Return command.