diff --git a/test/src/conditionals.hi b/test/src/conditionals.hi new file mode 100644 index 0000000..4c39304 --- /dev/null +++ b/test/src/conditionals.hi @@ -0,0 +1,10 @@ +a: 10 +b: 20 +max: (a > b) ? { a } : { b } +_(max) + +status: "ok" +(status == "ok") ? { _("Status is OK") } + +grade: (max > 15) ? { "A" } : { "B" } +_(grade)