aboutsummaryrefslogtreecommitdiffstats
path: root/progs/tests/auto/else_if.sy
blob: 18b64f6f1761a7fc40f46d8462ce029b44c2e347 (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
}