post
Writes values to the output log. This is CL++‘s standard print — the analog of C printf / C++ std::cout / Luau print.
Syntax
Section titled “Syntax”void post(...);Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
... | any | Values to print, separated by commas. |
Return value
Section titled “Return value”void. Nothing is returned.
Luau emit
Section titled “Luau emit”print(...)
Description
Section titled “Description”Every argument is forwarded to Luau print. There is no format string. Concatenate text with .: before printing, or pass several arguments.
Prefer post over legacy cout.
Example
Section titled “Example”post("hello");post("coins:", 100);post("online: " .: players.GetPlayers());Emits:
print("hello")print("coins:", 100)print("online: " .. players:GetPlayers())See also
Section titled “See also”warn · report · cout · operator-concat