Wrap

Appends text to the end of the string currently being built with the String Builder.
The text to be added consists of the input variables sOpen, sText, and sClose, which are concatenated without any additional separators.
Syntax
VAR_INPUT
sText : T_MaxString;
sOpen : STRING := '(';
sClose : STRING := ')';
bCondition : BOOL := TRUE;
END_VAR
Inputs
Name | Type | Description |
|---|---|---|
sText | Text to be added. | |
sOpen | STRING | Opening character inserted before sText. |
sClose | STRING | The closing character that is inserted after sText. |
bCondition | BOOL | An optional condition that must be met in order to execute the function. |