Skip to main content

Print Function

To output a value in the console, you can use the print function with this syntax:

print([value])

The print function can take 1 - 255 arguments. The values can be any value or expression. You can add multiple arguments to the print function, and it'll print all of them into the terminal split by spaces. For example:

var a = 5var b = 6
print(a, b, a + b)

This will output 5 6 11 in the terminal.