aboutsummaryrefslogtreecommitdiffstats
path: root/progs/tests/else_if.sy
blob: f31453e59f7ffbb281bbe22f392d1c6d39e64b14 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
start :: fn {
    a := 1
    res := 0
    if a == 0 {
        <!>
    } else if a == 1 {
        res = 1
    } else {
        <!>
    }
    res <=> 1
}