every %n:NUMBER% (tick|second|minute|hour|day)[s] — Blocks

every %n:NUMBER% (tick|second|minute|hour|day)[s]
Scheduling1.0.0

Description

Schedules the enclosed block to run repeatedly at a fixed interval. Accepts ticks, seconds, minutes, hours, or days. Can be cancelled from within using the cancel statement. Can be used at the top level.

Allowed Contexts

Root LevelInside Block

Examples

every 5 seconds: broadcast "Every 5 seconds!"

All Possible Usages (10)

Every distinct way you can write this pattern, with optional groups and choice groups expanded. Placeholders are shown as <name>.

every <n> tick
every <n> second
every <n> minute
every <n> hour
every <n> day
every <n> tick s
every <n> second s
every <n> minute s
every <n> hour s
every <n> day s

Related (Scheduling)