What it does
Tells whether an API task has finished, with success or failure.
Syntax
ApiDone(tache integer) → integerParameters
| Name | Type | Meaning |
|---|---|---|
| tache | integer | The 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()LOOPApiDone 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.