Format String In Blueprints

If I were to write code in C#, I can do something like this:

const string MessageTermplate = "The output for {0} is {1}";
string message = string.Format(MessageTermplate, "Foo", "Bar"); 

Is this possible in blueprints?

I know we can concatenate strings but I would rather not create variables and join them.

The ‘Format Text’ has the functionality that you’re looking for:

5 Likes

Is there anyway to add formatting arguments?
Most simple example is when you want to build a string representing time. You want to force at least 2 digits for minutes and hours.

by using ToText on the values before putting them into the FormatText function. ToText has typespecific formatting arguments