Call Function
Invoke your custom-defined function.
Configuration:
From Struct: (Optional) Specify a pointer to your struct instance if you are calling a function defined on the struct. This also enables auto-suggestions for methods defined on the struct.
Function Name: Select the function you are calling.
Parameters: Based on the selected function, the required parameters will be shown. You need to provide values for these parameters by passing variables.
Outputs: Depending on the selected function, the number of outputs it returns will be displayed. You must assign a new variable name for the return value or provide an existing variable with the exact type.
If you are returning a struct type (rather than a value type), you do not need to provide an output name. The returned type will be accessible in your function stack.
Use the Save & Update button to automatically update the referenced type for the function if the underlying function's parameters or outputs change.
- Define Custom Function: Here, we define a custom function called
Capitalize
, which takes one parameter,name
, and returns one output also namedname
.
- Inside the function body, we convert the passed value to uppercase and finally use the Return In Scope function to return the result and exit the function.
- Call the function with the required parameters, and finally, print the result.