What it does
Log takes szMessage (a string), and returns nothing. That is the first of 2 forms.
Syntax
1
Log(szMessage string)2
Log(a float) → floatParameters
| Name | Type | In forms |
|---|---|---|
| szMessage | string | 1 |
| a | float | 2 |
What each form returns
| 1 | Log("hello") | nothing |
| 2 | Log(1.0) | float |
Example · generated
Form 1, you choose the id yourself
Log("hello")DO Sync()LOOPForm 2, the command hands back the id
DO Print(Log(1.0)) Sync()LOOPLog is called with values of the types its signature asks for. 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.