Tips for working with text

New Line

As the name implies, the newline block allows you to put text onto a new line, i.e. it creates a line break in a string.

You can use as many newline blocks as you need to in your projects.

newline

Example 1

In this first example we just put a line break in between the two strings. This means that “hello” is on the first line and “world” is below that on the second line.

newline_example


Example 2

In this second example, you have a list of things and you want to display them all in a label. Rather than having all the items bunched together on a single line, you want each item to go on its own line.

3 Likes