ProtoLang.net

Reference: Functions

☰ Hide Sidebar

Functions define reusable code blocks with optional parameters and local scope.

  • Function: Defines a reusable block of code with parameters.
  • Parameter: Variable declarations that specify values a function receives.
  • Divider: Separates multiple parameters or arguments in functions.
  • Return: Sends a value back to the caller and exits the function.
  • End Function: Marks the end of a function definition.