Skip to content

INSTR 🟑 BETA

INSTR finds the position of a substring.

Where BASIC scripting sits in the Developer guide

Syntax

INSTR(text, "needle

Example

INSTR("hello world", "world")

What it does

INSTR is a registered string function that returns where a needle appears in a text value.

Limits

  • Registered with positional arguments only β€” the signature shown is the exact form; named arguments are not part of the keyword.
  • Registered as an engine function (crates/botbasic_core/src/keywords/string_functions.rs).