Back to Index

Definition: next; — Allowed: inside scheduled/event blocks (every/after/onmqtt/onlora/ontrigger/delay); Not allowed: func or top-level script statements.

Exits the current scheduled/event block run early. Only the current run is stopped; future runs continue normally.

Example

every(1000) {
  if (!in(1)) { next; }  // skip this tick when input is OFF
  out(1) = 1;
}