Text Block

The Text block can combine up to three text strings into one text string.
Merging Text Strings


Mode Selector
Inputs
Output
Modes
Merge
The Text block has a single mode named Merge. The input text strings A, B, and C will be combined together (in this order) into a single text string. Any input that is not included will be skipped. The Result output is the combined text string.
Example
This program takes a Reflected Light Intensity measurement from the colour sensor and uses it for the B input of the Text Block. The output number from the Colour Sensor Block is automatically converted to text by a Data Wire Type Conversion (see Data Wires for more information). The Text Block then adds the text “Reflection is ” before the number and the text “%” after the number. The result is displayed as a single text string using a Display Block. If the Colour Sensor output is 50, the text “Reflection is 50%” would be displayed.
Inputs and Outputs
The inputs of the Text Block provide up to three text strings to combine together. You can enter the input values directly into the block. Alternatively, the values can be supplied by Data Wires from the outputs of other Programming Blocks.
InputTypeAllowed ValuesNotes
A TextAny textSkipped if not included
B TextAny textSkipped if not included
C TextAny textSkipped if not included
The output of the Text Block gives the combined text string. To use the output, use a Data Wire to connect it to another Programming Block.
OutputTypeNotes
Result TextString A followed by string B then string C
Text
Quick links