Log

Family: Error · 2 forms

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) → float

Parameters

NameTypeIn forms
szMessagestring1
afloat2

What each form returns

1Log("hello")nothing
2Log(1.0)float

Example · generated

Form 1, you choose the id yourself

Log("hello")DO  Sync()LOOP

Form 2, the command hands back the id

DO  Print(Log(1.0))  Sync()LOOP

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

4 commands in Error