Function
Outputs a value to the current output buffer without automatically appending newlines.
Syntax
print(value) print 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
// Output: Hello (with one trailing space) print('Hello ') // Output: BT print 'BT'
Notes
-
printwill not automatically wrap lines, and continuous output will be spliced directly. - The parenthesized and unbracketed forms have the same semantics.
- Use
printlnwhen automatic line wrapping is required. - When
emptyis actively output, it will be displayed asemptyto facilitate troubleshooting of missing values; JSON serialization will still outputemptyasnull. -
printis a language output statement, not a system function that can be called dynamically throughcall().