Appends the second string to the first if the first one doesn't end with the second one.

Syntax

Smartsite SXML CopyCode image Copy Code
string string.appendifmissing(string s1, string s2)

Parameters

Name Data Type Description
s1 String The first input string.
s2 String The second input string.

Return Value

Data Type Description
String The concatenation of the two input strings.

Expand image Example

SXML