CountString

Family: String · One form

What it does

CountString takes string (a string) and find (a string), and answers an integer.

Syntax

CountString(string string, find string) → integer

Parameters

NameType
stringstring
findstring

Every form returns

integer

Example · generated

DO  Print(CountString("hello", "value"))  Sync()LOOP

CountString 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