StringConcatenator
Description
The StringConcatenator block concatenates two strings. These strings can be specified using the Attributes or come from input connectors.
Attributes
- Name [string]: The name of the block.
- String [string, readonly]: The last string output.
- String1 [string]: The first string to concatenate.
- String2 [string]: The second string to concatenate.
- StringChanged [event]: Event raised when the string has changed.
- StringInput1 [string input]: Attach any block that outputs a string. It's output will be used as first string to concatenate. Either the String1 or StringInput1 attribute must be set (but not both).
- StringInput2 [string input]: Attach any block that outputs a string. It's output will be used as the second string to concatenate. Either the String2 or StringInput2 attribute must be set (but not both).
Output connectors
- String: The concatenated string.
Examples
1 <StringConcatenator Name="concat" String1="hello " String2="world"/>
2
3 <VisualPage>
4 <VisualContent>
5 <VisualText Input="concat"/>
6 </VisualContent>
7 </VisualPage>
1 <StringConcatenator Name="concat" String1="Hello " StringInput2="textboxname"/>
2
3 <VisualPage>
4 <VisualContent>
5 <VisualText Text="What is your name?"/>
6 <VisualTextBox Name="textboxname"/>
7 <VisualText Input="concat"/>
8 </VisualContent>
9 </VisualPage>
