split()
Split a string into an array using a delimiter.Signature
Parameters
| Parameter | Type | Description |
|---|---|---|
text | string | The string to split |
delimiter | string | Character(s) to split on |
Example
concat()
Concatenate multiple strings together.Signature
Parameters
| Parameter | Type | Description |
|---|---|---|
str1, str2, ... | string | Strings to concatenate |
Example
substring()
Extract a portion of a string.Signature
Parameters
| Parameter | Type | Description |
|---|---|---|
text | string | The source string |
start | number | Start index (0-based) |
end | number | End index (optional) |
Example
length()
Get the length of a string.Signature
Example
toUpperCase()
Convert string to uppercase.Signature
Example
toLowerCase()
Convert string to lowercase.Signature
Example
includes()
Check if a string contains a substring.Signature
Example
replace()
Replace occurrences of a substring.Signature
Example
Practical Examples
Symbol Parsing
Dynamic Labels
Exchange Detection
Tips
String Immutability
Strings in kScript are immutable. Operations likeconcat() and replace() return new strings.
Case Sensitivity
String comparisons are case-sensitive. UsetoUpperCase() or toLowerCase() for case-insensitive comparisons.