Adds a prefix and/or suffix to the given string, but only if the source string is non-empty.
Syntax
Smartsite SXML | Copy Code |
---|---|
string string.enclose(string value, string prefix) string string.enclose(string value, string prefix, string suffix) |
Parameters
Name | Data Type | Description |
---|---|---|
value | String | The value. |
prefix | String | The prefix. |
suffix | String | The suffix. |
Return Value
Data Type | Description |
---|---|
String |