Skip to content

Custom Blocks#

Custom blocks are called procedures.

proc my_procedure arg1, arg2 {
    # code
}

Arguments#

Use arguments by prefixing $ to the argument name.

proc my_procedure arg1, arg2 {
    say $arg1;
}

Calling custom blocks#

my_procedure arg1, arg2;