🔁Functions
Functions are defined using the func
keyword, followed by the function name and enclosed in {}
brackets.
Syntax
func myFunction
{
//Function body
}
Functions must be defined after an opening bracket
{
and closed with a}
.They are stored and executed line by line.
Nested function definitions are not allowed.
Calling functions
To call a function, use the call
keyword:
call myFunction
If the function is not found, an error is printed.
All calls are synchronous and return nothing.
Last updated