From fe851bcb542dac5f3af312da02ff617aa817f118 Mon Sep 17 00:00:00 2001 From: Nic Gaffney Date: Wed, 19 Feb 2025 18:07:15 -0600 Subject: Fixed if statements --- examples/mathTest.nya | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'examples/mathTest.nya') diff --git a/examples/mathTest.nya b/examples/mathTest.nya index 14e7f0a..7b36cc8 100644 --- a/examples/mathTest.nya +++ b/examples/mathTest.nya @@ -8,8 +8,9 @@ fn test() -> i32 { fn main() -> i32 { const: i32 num = 5 + 3 * 7; const: i32 num2 = test(); - if (num2 == test()) + if (num2 == test()) { puts("Hello World!"); + } if (num2 == 0) puts("Shouldn't print"); -- cgit v1.2.3