From b0a26fcb4a47e57c82660bd22429778234ded2dc Mon Sep 17 00:00:00 2001 From: Vardan2009 <70532109+Vardan2009@users.noreply.github.com> Date: Mon, 28 Oct 2024 21:54:06 +0400 Subject: [PATCH] Fix `iseven() returning null` Closes #175 --- examples/simple.rn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/simple.rn b/examples/simple.rn index e2b6926..25155ff 100755 --- a/examples/simple.rn +++ b/examples/simple.rn @@ -13,7 +13,7 @@ var list = [1, 2, 3, 4, 5] var index = find(list, 3) print(index) -fun iseven(num) -> if (num % 2) == 0 { return true } else { return false } # returning null !! +fun iseven(num) -> num % 2 == 0 print(iseven(234)) print("iseven(42): " + str(iseven(42))) print("iseven(2341): " + str(iseven(2341)))