Text field

With the text field Block " " you can create text. Write the desired text in the field between the quotation marks.

/images/2020-04-08-blockly-text/blockly-text-1.svg - Logo

Create text with

With the Create text with block you can convert measured values into text on the one hand and on the other hand to create compound texts (from several text fields, numbers, measured values or variables).

/images/2020-04-08-blockly-text/blockly-text-2-en.svg - Logo

The normal Create Text with block can be expanded by clicking on the gear wheel. You can add more elements by clicking and dragging to create text from multiple elements. After editing you can close the window again by clicking on the gear wheel again.

/images/2020-04-08-blockly-text/blockly-text-6-en.gif - Logo

Append text

With the Append Text block you can append text to an existing variable.

/images/2020-04-08-blockly-text/blockly-text-3-en.svg - Logo

Length of

With the Length of block you can get the length of a text block.

/images/2020-04-08-blockly-text/blockly-text-4-en.svg - Logo

For example, the text block “senseBox” would be 8 units long.

is empty?

With the is empty block you can check if a given text block is empty (has length 0). The result is either true (if the given text block is actually empty) or false (if there are characters in the text block).

/images/2020-04-08-blockly-text/blockly-text-5-en.svg - Logo


The latest tutorials sent straight to your inbox.