What it does
JsonString takes jsonValue (an integer), and answers a string. That is the first of 2 forms.
Syntax
1
JsonString(jsonValue integer) → string2
JsonString(jsonValue integer, value string)Parameters
| Name | Type | In forms |
|---|---|---|
| jsonValue | integer | all |
| value | string | 2 |
What each form returns
| 1 | JsonString(1) | string |
| 2 | JsonString(1, "value") | nothing |
Example · generated
Form 1, the command hands back the id
DO Print(JsonString(1)) Sync()LOOPForm 2, you choose the id yourself
JsonString(1, "value")DO Sync()LOOPJsonString 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.