From 83c0ac1f434e2e3d93a77d54af0e09fb25c39b05 Mon Sep 17 00:00:00 2001 From: chloe caruso Date: Sat, 20 Jan 2024 16:34:20 -0800 Subject: [PATCH] revert my changes to control.blight --- examples/basics/control.blight | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) 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!"); +} -- 2.54.0