ApiDone

Family: Studio · One form

What it does

Tells whether an API task has finished, with success or failure.

Syntax

ApiDone(tache integer) → integer

Parameters

NameTypeMeaning
tacheintegerThe task id returned by ApiRequest().

Every form returns

integer

1 when the task has finished, 0 while it runs or when the id is unknown.

Good to know

  • Editor and HTML5 exports only: native (Bevy) builds stop with an unsupported-command error.

Example · generated

DO  Print(ApiDone(1))  Sync()LOOP

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

133 commands in Studio