summaryrefslogtreecommitdiff
path: root/tests/test_conditional_4.tnsl
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2024-03-26 13:35:27 -0400
committerKyle Gunger <kgunger12@gmail.com>2024-03-26 13:35:27 -0400
commite0ca664381066668073270ce1fe3e0813b25bfb1 (patch)
tree197c27956d8ea6036b720496d826482e493b62a2 /tests/test_conditional_4.tnsl
parente6fa86985af283622d28613ab46b87fc7c5a4685 (diff)
More bool ops
Diffstat (limited to 'tests/test_conditional_4.tnsl')
-rw-r--r--tests/test_conditional_4.tnsl16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/test_conditional_4.tnsl b/tests/test_conditional_4.tnsl
new file mode 100644
index 0000000..d31944a
--- /dev/null
+++ b/tests/test_conditional_4.tnsl
@@ -0,0 +1,16 @@
+
+/; main [int]
+ int a = 0
+ int b = 69
+ int c = 70
+
+ /; if (a < b && b > c)
+ return c
+ ;; else if (b > c && a < b)
+ return a
+ ;; else if (a > b && b > c)
+ return 1
+ ;/
+
+ return b
+;/