Purpose
 
 
 Check whether a text or string ends with a given string.
 
 
  Synopsis
 
 
  function endswith(txt:text|string, tofs:text|string):boolean 
 
 
  Arguments
 
 
 
  
   | 
     
     txt 
       | 
   
     
     A string or text object
       | 
  
  
   | 
     
     tofs 
       | 
   
     
     String to find
       | 
  
 
 
  Return value
 
 
 true if the ending of
 txt corresponds to
 tofs.
 
  Related topics
 
  
  Module