.: (concat)
String concatenation. Emits Luau ... Never use + or Lua .. in CL++.
Syntax
Section titled “Syntax”a .: b .: cParameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
a | string-ish | Left operand. |
b | string-ish | Right operand. |
Return value
Section titled “Return value”A string.
Luau emit
Section titled “Luau emit”a .. b
Description
Section titled “Description”Associates left-to-right: a .: b .: c → (a .. b) .. c. string_concat joins many arguments in one (..) group.
+ only adds numbers.
Example
Section titled “Example”return player.Name .: "_LeaderstatsJanitor";return player.Name .: "_" .: "LeaderstatsJanitor";Emits:
return player.Name .. "_LeaderstatsJanitor"return (player.Name .. "_") .. "LeaderstatsJanitor"See also
Section titled “See also”string_concat · string · post · to_string