diff --git a/examples/branch.not b/examples/branch.not new file mode 100644 index 0000000..f08e65f --- /dev/null +++ b/examples/branch.not @@ -0,0 +1,13 @@ +check = fn(num) { + if num < 10 { + println("The number is pretty small.") + } elif num < 100 { + println("That number is getting pretty big.") + } el { + println("Whoa! That number is huge!") + } +} + +check(1) +check(10) +check(100)