Log values to the console output. Arrays render as headerless tables: a flat array as one row, an array of arrays as one row per inner array.
Syntax
Section titled “Syntax”print [...values]Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
[...values] | any | Values to output, space-separated |
Options
Section titled “Options”| Name | Type | Description |
|---|---|---|
--headers | array | Column headers; renders the printed arrays as a table, one array per column |
Examples
Section titled “Examples”# Print a stringprint "hello"
# Print multiple valuesprint "count:" 42
# Print variablesset $name "world"print "hello" $name
# Print an array as a one-row tableprint [1 2 3]
# Print an array of arrays as table rowsprint [[alice 10] [bob 20]]
# Print column arrays as a tableprint [[alice bob] [10 20]] --headers [Name Score]