Definition: ontrigger("label") { ... } — Allowed: string literal label; Not allowed: non-string label.
Declares a trigger-only block that never runs automatically. Use trigger("label") to run it immediately. Use next; for early exit of the current run.
ontrigger("trig1") {
out(1) = 1;
delay(1000) { out(1) = 0; }
}
// Fire the block whenever needed
trigger("trig1");