This article explains how to use Text Join to join texts and numbers.


On the Grasshopper, it is represented by either of the two above.
Joining Texts
Text Join can be used to join texts and numbers.

As a first example, we have a three-letter word: “I”, “love”, and “Grasshopper”.
These three letter words are connected to the Text Join(T) in sequence.
All three words are then joined and the output is “IloveGrasshopper”.
Specifying the characters to be inserted between words

It is also possible to specify the characters to be inserted between words.
In this case, specify a letter or number in the Text Join(J).
In this case, “A” is connected to the Text Join(J).
The output is “IIloveAGrasshopper,” indicating that there is an “A” between the two words.

Entering a space at the Text Join(J) will create a space between the letters.
Combining letters and numbers
Numbers can also be combined with letters.
When crossed with the Number Slider, only numbers can be changed.
This can be applied to multiple file data by specifying the file name with a numerical value, so that the file to be selected can be changed by changing the numerical value.

In this case, we combined the word “Grasshopper” with the number 0 in the Number slider.
Then, “Grasshopper0” was concatenated and output.

The number in the Number slider was changed from 0 to 1.
The result is now Grasshopper1.
In this way, it is also possible to change the numerical value.
List of Grasshopper articles using Text Join component↓
Comment