InsertString

Family: String · One form

What it does

InsertString takes string (a string), insert (a string) and position (an integer), and answers a string.

Syntax

InsertString(string string, insert string, position integer) → string

Parameters

NameType
stringstring
insertstring
positioninteger

Every form returns

string

Example · generated

DO  Print(InsertString("hello", "value", 1))  Sync()LOOP

InsertString is called and its answer is printed every frame. The DO … LOOP is not decoration: a classic BASIC program ends the moment it runs out of lines, and Sync() is what draws the frame.

21 commands in String