aboutsummaryrefslogtreecommitdiffstats
path: root/samples/sample1.code
blob: dff751fe147fc0c58bf0f9fec7e1b4a1ff590ed5 (plain)
1
2
3
4
5
6
7
8
9
10
foo = "foo";
number-of-the-beast = 666;
my-number = number-of-the-beast; # value lookup
num = int.zero; # builtin value
int.double = int.multiply 2;
list.multiply-all = reduce int.multiply 1;

ifelse (string.eq? foo "bar")
    (int.double 1) # if foo = "bar", calc 1 * 2
    number-of-the-beast # else, number of the beast