
MarkLogic 10 Product Documentation
fn.endsWithfn.endsWith(
   parameter1 as String?,
   parameter2 as String?,
   [collation as String]
) as Boolean
Summary
 Returns true if the first parameter ends with the string
 from the second parameter, otherwise returns false.
	  
	  
	
	  
	    | Parameters | 
	  
	
	  
	    | parameter1 | 
	    
  The parameter from which to test.
   | 
	  
	  
	    | parameter2 | 
	    
  The string to test whether it is at the end of the first parameter.
   | 
	  
	  
	    | collation | 
	    
  The optional name of a valid collation URI.  For information on the
  collation URI syntax, see the Search Developer's Guide.
   | 
	  
	
Example
fn.endsWith("this is a string", "a string");
=> true
    Copyright © 2025 MarkLogic Corporation. MARKLOGIC is a
    registered trademark of MarkLogic Corporation.