strings:EndsWith

Previous Next

Evaluates whether or not a string value ends with another string value, heeding case.

Returns a boolean.

 

Syntax

strings:EndsWith( value1, value2 )

Both value1 and value2 are required string values. The result evaluates to true() if value1 ends with value2, and otherwise evaluates to false().

 

Example

select uscsxsl.blend(
  '<Example xmlns:pc="Processing.Command" pc:hideme="true">
     <pc:assign-string-default val = "abcDEF"/>
     <pc:value-of select="strings:StartsWith( $val, ''aBc'')"/>
   </Example>'
)

The result value is:

false()