godot format string code example
Example 1: gdScript string format
var s1 : String = "godot"
var s2 : String = "%s game engine" %[s1]
print(s2) # print -> godot game engine
Example 2: godot string format
var format_string = "%s was reluctant to learn %s, but now he enjoys it."
var actual_string = format_string % ["Estragon", "GDScript"]