println
println
Function
Outputs a value to the current output buffer, appending a newline at the end.
Syntax
println(value) println value
Parameters
| Parameters | Type | Required | Default value | Description |
|---|---|---|---|---|
| value | Any | Yes | None | The value to output. |
Return value
| Type | Description |
|---|---|
| Any | Returns the value being output. |
Code Example
println('Hello BT') println 'Hello BT'
Notes
-
printlnwill automatically append newlines, suitable for debugging output and logs. - The parenthesized and unbracketed forms have the same semantics.
- Use
printwhen line breaks are not required. -
printlnis a language output statement, not a system function that can be called dynamically throughcall().