Does KM Have Something Like a `sprintf` Text Formatting Function?

I have to create a text string out of several variables. Currently, I use the "Prepend/Append variable with text" actions for this, but it's rather tedious.

Is there an action that does this in one go, similar to how C offers an sprintf function for this kind?

Hey Thomas,

I'm not quite sure what you mean by this, so it would be nice to have an example...


All variables are text, and in the Set Variable to Text action you can mix and match any variety of text and Variables.

Some Text…%Variable%local_SomeVariableName%Some more text…

Just remember that you must use the text-token form for variables when working with them in text fields (as opposed to calculation fields).


1 Like