Functions

This page will explain to you how to make functions in Zico.

Like most coding languages, Zico can make functions used to avoid repetition of code and have maximum code optimization

Explanation

'func' is the prefix to create a function in Zico, 'example' is the name of the function, between the paranthese, you can add parameters like 'parameter' that you name whatever you want!

The print function here will output "Hello, Zico!".

'example(name)' will call the function named 'example' with the parameter 'parameter' being the variable 'name'

/!\ Functions must start with a bracket and end with a bracket {}

Last updated