Files
hank/old-examples/conditional/main.hank

18 lines
306 B
Plaintext

{if (DEBUG) "Debug mode!"}
{if (!DEBUG) "Not debug mode" else "debug mode"}
// Make sure flow can fall through embedded blocks
```
if (DEBUG) {
, -> debug_only_section
}
else {
, This will fall through!
}
```
This is the production ending!
== debug_only_section
This is the secret debug ending!