StringToken2

Family: Core · One form

What it does

StringToken2 reads a value without changing anything. It takes str (a string), delimiter (a string) and token (an integer), and answers a string.

Syntax

StringToken2(str string, delimiter string, token integer) → string

Parameters

NameType
strstring
delimiterstring
tokeninteger

Every form returns

string

Example · generated

DO  Print(StringToken2("hello", ",", 1))  Sync()LOOP

StringToken2 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.

200 commands in Core