Swiftybase
Function StackCustom function

Custom Function

Define and invoke your custom function.

Configuration:

Function Name: Specify the name of the function you want to define.

Parameters: Define the parameters that the function will accept.

Outputs: Define the outputs that the function will return.

  1. Define Custom Function: In this example, we define a custom function called Capitalize, which accepts a parameter name and returns an output with the same name.

Define Function

  1. Within the function body, we convert the passed value to uppercase and then use the Return In Scope function to return the result and exit the function.

Return in Scope

  1. Finally, call the function with the required parameters and print the result.

Call Function

On this page