String manipulation
- String interpolation:
var result = "The %s has defeated the %s in %s" % ["Player", "Boss", "Combat"]
print(result)
# Will prints:
# The Player has defeated the Boss in Combat
- Concatenate strings:
var result = "Hello, " + "GDScript!" - Format strings:
var result = "Hello, %s!" % "GDScript" - Split strings:
var words = "Hello, GDScript!".split(", ")
Comments






