DynamoWishlist icon indicating copy to clipboard operation
DynamoWishlist copied to clipboard

Improvement: String.Format method needed!

Open ThomasMahon opened this issue 8 years ago • 5 comments

Dynamo version

1.0.0

Operating system

Win 10

Improvement Suggestion

I was looking for a String.Format (same as c# method) node and discovered there isn't one!

Any chance one can be added to the library, or DesignScript at the very least?

What I need is the equivalent to c# String.Format method: an input string with the ability to define indexed insert locations (in c# the syntax is defined by curly brackets - see example below) followed by a sequence of input arguments that are matched to the indexes.

temp = 30; location = "London"; string s = String.Format("The temperature is {0}°C in {1}.", temp, location);

result ="The temperature is 30°C in London."

ThomasMahon avatar May 13 '16 09:05 ThomasMahon