String.concat
String.concat
Function
Concatenate the current string and all parameters in sequence into a new string.
Syntax
string.concat(value1, value2, ...)
Parameters
| Parameters | Type | Required | Default value | Description |
|---|---|---|---|---|
| valueN | Any | No | None | The value to be spliced will be converted to a string first when called. |
Return value
| Type | Description |
|---|---|
| String | Returns the new string after concatenation. |
Example
text = 'BT' result = text.concat(' ', 'Lang') // Output: BT Lang print result
Notes
- The original string is not modified.
- Array and object parameters will be concatenated according to BT JSON string rules.