Lessons

lesson 03 / 15

Strings and variables

Variables are declared before the function blocks. Strings may use single or double quotes. Triple quotes are useful for multi-line text.

kongue
title: "A short title"
summary: """
Kongue puts configuration near the top
and behavior inside named functions.
"""

main {
    print "$title"
    print $summary
}

Variables are resolved when a command or expression is executed. A function can read the global variables declared in the header.