Skip to content

Commit

Permalink
Fix iseven() returning null
Browse files Browse the repository at this point in the history
Closes #175
  • Loading branch information
Vardan2009 committed Oct 28, 2024
1 parent ab23b3d commit b0a26fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/simple.rn
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
Expand Down

0 comments on commit b0a26fc

Please sign in to comment.