Skip to content
starkos edited this page Apr 10, 2021 · 2 revisions

⚠️ We have a new website! Visit now for the most update to date documentation.
       This wiki is no longer being maintained.


Home > [Scripting Reference](Scripting Reference) > printf


printf

The printf performs like its C counterpart, printing a formatted string.

#!lua
printf("format", ...)

It is equivalent to this Lua code:

#!lua
print(string.format(format, unpack(arg))

Parameters

format is a formatting string containing C printf() style formatting codes. It is followed by a list of arguments to be substituted into the format string.

Return Value

None.

Clone this wiki locally