Conditional
@ifDirective
Compiles its body only when every condition holds. The attribute group IS the conditions — each `key: value` tests a `@let` constant by exact value — so `@if` has no attributes of its own. At least one condition is required, and a condition naming an undeclared constant is a compile error.
Allowed content
Body { }The content to keep when the conditions hold — any Chalk that is legal where the @if is written
Examples
@let(audience: teacher)
@if(audience: teacher){
note{
Answers are collected in the closing scene.
}
}