✓
Passing This code compiles and runs correctly.
Code
// Test: print.ln with {% if %} conditionals
~import std/io
const debug = true;
const verbose = false;
// When debug is true, should print "[DEBUG] Hello!"
~std/io:print.ln("{% if debug %}[DEBUG] {% endif %}Hello!")
// When verbose is false, should print "Status: OK"
~std/io:print.ln("Status: {% if verbose %}VERBOSE {% endif %}OK")
Actual
[DEBUG] Hello!
Status: OK
Expected output
[DEBUG] Hello!
Status: OK
Flows
flow ~print.ln click a branch to expand · @labels scroll to their anchor
print.ln (expr: "{% if debug %}[DEBUG] {% endif %}Hello!")
flow ~print.ln click a branch to expand · @labels scroll to their anchor
print.ln (expr: "Status: {% if verbose %}VERBOSE {% endif %}OK")
Test Configuration
MUST_RUN