For
@forDirective
Repeats its body. The implicit attribute `n` is a non-negative count (`@for:3`) or an inclusive range (`@for:0..6`) that iterates upward; inside the body `{{i}}` splices the counter, and `as:` renames it. Ranges must ascend — a descending `from..to` is a compile error.
Attributes
nRequiredImplicit
as
Allowed content
Body { }The content to repeat — spliced once per iteration with {{i}} substituted
Examples
@for:0..4{
point(x: {{i}}; y: {{i}})
}@for(n: 1..3; as: k){
Attempt {{k}} of 3.
}