Answers for "godot format string"

3

gdScript string format

var s1 : String = "godot"
var s2 : String = "%s game engine" %[s1]
print(s2) # print -> godot game engine
Posted by: Guest on August-27-2020
1

godot string format

var format_string = "%s was reluctant to learn %s, but now he enjoys it."
var actual_string = format_string % ["Estragon", "GDScript"]
Posted by: Guest on April-14-2021

Python Answers by Framework

Browse Popular Code Answers by Language