Skip to content

Functions

Michał edited this page Jan 13, 2023 · 3 revisions

In IterkoczeScript, you can define a function using the meth keyword,

meth Test -> {
   Write("Hello");
}

See the example

In your function body, you can refer to its arguments by using the dollar sign $ followed by a integer. For example $0

In the function definition you can't specify the arguments. You can pass different arguments to the same function and refer to them by using the dollar sign $

To return a value, use the give keyword

Remember that values are passed by copy (are they?)

Clone this wiki locally