Skip to content

GOTO Keyword 🟑 BETA

GOTO is not a registered BASIC keyword.

Where BASIC scripting sits in the Developer guide

What it does

The closed catalog in botserver/src/basic/keywords/mod.rs has no GOTO, and keyword_reference.rs states that control flow uses IF, FOR EACH, WHILE, SWITCH and ON instead. Scripts that emit GOTO will not compile.

Use instead

Use ON EVENT with a named event, or one of the structured control-flow forms: IF … THEN … ELSE … END IF, FOR EACH … NEXT, WHILE … WEND, SWITCH … CASE … END SWITCH.

Limits

  • No registration exists, so no Cargo feature enables this keyword.
  • No source claim for GOTO exists in the registration sites; it is removed rather than softened.