cout / endl
C++ iostream leftover. Parses, but post is the language’s real print.
Syntax
Section titled “Syntax”cout << arg << arg << endl;Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
arg | any | Each << is another print argument. |
endl | manipulator | Ends the line. |
Return value
Section titled “Return value”void.
Luau emit
Section titled “Luau emit”print(arg, arg)
Description
Section titled “Description”Each << becomes another argument to print. endl finishes the statement. There is no cin, scanf, or stream formatting (std::setw). Game input comes from Instances, DataStores, and signals.
New code should use post.
Example
Section titled “Example”cout << "hi" << endl;Emits:
print("hi")