-
Notifications
You must be signed in to change notification settings - Fork 0
joinString
ffredyk edited this page Jul 23, 2026
·
1 revision
String
Binary — joinString [array, separator].
joinString <array> // [array, separator]
Joins an array of strings into a single string, with the separator inserted between each element. Returns the joined string. The right operand is an array: [stringArray, separator].
Calls string.Join(separator, stringArray). Each element in the array is converted to its string representation via str if not already a string. The separator is not added before the first element or after the last.
joinString [["a", "b", "c"], "-"]; // "a-b-c"
joinString [["red", "green"], ", "]; // "red, green"_fields = ["John", "Doe", "42"];
_csv = joinString [_fields, ","]; // "John,Doe,42"_parts = ["scripts", "ai", "combat.sqf"];
_path = joinString [_parts, "\"]; // "scripts\ai\combat.sqf"_words = ["Hello", "world", "from", "SQF"];
_sentence = joinString [_words, " "]; // "Hello world from SQF"joinString [[1, 2, 3], ", "]; // "1, 2, 3"joinString [[], ","]; // "" (empty string)joinString [["only"], ","]; // "only" (no separator added)ReadOnly — pure computation, returns new string. Safe from any scheduler.
- splitString — reverse: split string into array
- format — formatted string output
- + — string concatenation
- str — value to string
- Getting Started
- Language Guide
- Type System
- Control Flow
- Functions & Code
- Strings & Text
- Arrays & Collections
- Concurrency
- Promise System
- Thread Safety
- Host API & Embedding
- CLI Tool
- Bytecode Reference
- Multiplayer
- Syntax Sugar
- Optimization Guide
- Benchmarks
- count
- select
- pushBack
- append
- deleteAt
- deleteRange
- resize
- reverse
- sort
- find
- in
- forEach
- freeze
- thaw
- isFrozen
- currentScheduler
- clientOwner
- allSchedulers
- schedulerName
- schedulerExists
- schedulerBudget
- setSchedulerBudget
- fiberCount
- readyFiberCount
- waitingFiberCount
- schedulerLoad
- sendTo