diff --git a/examples/basics/control.blight b/examples/basics/control.blight index 579f551f87fa6dc390eb6fd92390ef066f287c36..f6e3bdb1db079dc14869607c8fc2821eee7a89f2 100644 --- a/examples/basics/control.blight +++ b/examples/basics/control.blight @@ -1 +1,17 @@ -let x: bool = 1 * 3 + 2 / 2 == 4 + 2; +let print = @raw("console.log"); + +let x: bool = true; + +if x { + print("x is true!"); +} + +let y: int = 3; + +if y == 1 { + print("y is 1!"); +} else if y == 2 { + print("y is 2!"); +} else { + print("y is not 1 or 2!"); +}