Skip to content

ON Keyword 🟑 BETA

ON declares an event trigger for the current tool.

Where BASIC scripting sits in the Developer guide

What it does

ON registers a handler that runs when the named event is raised.

Limits

  • Listed in the closed keyword catalog in botserver/src/basic/keywords/mod.rs; the runtime reference publishes no exact signature for it, so this page does not invent one.
  • Listed in the closed keyword catalog in botserver/src/basic/keywords/mod.rs; the runtime reference publishes no exact signature for it, so this page does not invent one.
  • ON EVENT takes only the event name β€” it does not name a tool (keyword_reference.rs).