From 965ba629f03c2f5a78d0bb21fe9546f780197adf Mon Sep 17 00:00:00 2001 From: multipleof4 Date: Mon, 22 Sep 2025 12:51:10 -0700 Subject: [PATCH] Feat: Add standalone if-statement example --- index.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 84069fb..e9071e3 100644 --- a/index.html +++ b/index.html @@ -208,9 +208,10 @@ grade: (score >= 90) ? { "A" } : { "D" } _(grade) // Prints "C" -// Use for side-effects, like a traditional 'if'. -// The return value is discarded. -(grade == "C") ? { _("Passable") } +// Use as a standalone 'if' for side-effects. +// The block executes if the condition is true; the return value is discarded. +isReady: !0 +(isReady) ? { _("System is ready.") } \`\`\` ## Data Structures