Skip to content

print

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.

print [...values]
NameTypeDescription
[...values]anyValues to output, space-separated
NameTypeDescription
--headersarrayColumn headers; renders the printed arrays as a table, one array per column
# Print a string
print "hello"
# Print multiple values
print "count:" 42
# Print variables
set $name "world"
print "hello" $name
# Print an array as a one-row table
print [1 2 3]
# Print an array of arrays as table rows
print [[alice 10] [bob 20]]
# Print column arrays as a table
print [[alice bob] [10 20]] --headers [Name Score]