Tips for working with text

Join Text

The join block allows you to stick two or more pieces of text together.
join

note: Programmers often refer to pieces of text as Strings and the process of join bits of information together is sometimes called concatenation


Example 1

In this example, two pieces of text are joined together and displayed in a label. The message, “hello world”, will never change.

join1


Example 2

This example is a little more interesting. The text in the label will change depending on what the user
types into Text_Input1.

In many cases you’ll want to make sure that a user doesn’t leave an input blank, and we’ll cover how to do that in the next tip.


Example 3

You can join together as many strings as you like by clicking on the blue gear icon mutator (also know as a block mutator) and manually add in extra items, where ever you want them.

2 Likes