User Tools

Site Tools


syntax:functions:endswith

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
syntax:functions:endswith [2015/04/03 10:34] elenapsyntax:functions:endswith [2021/08/14 19:02] (current) – [See also] craigt
Line 1: Line 1:
-====== EndsWith(textAtextB) ======+====== EndsWith(textend_string) ====== 
 +Category:  Text function
  
-search function that is used to check if the first string of text (//textA//) or a field (//FieldName//) ends with the specific text (//TextB//).  +\\  
-Can be used in transformation [[transformations:filter|Filter by condition]]+=====Description===== 
 +This function is a search function used to check if string (//text//) ends with specific text value (//end_string//).  If so, this function returns TRUE.  Otherwise, it returns FALSE.
  
-True if //textA// ends with //textB//. Case sensitive.+\\  
 +=====Arguments===== 
 +^Argument^Type^Description^ 
 +|text|Text|Any text, or value that can implicitly converted to text.| 
 +|end_string|Text|The text string to search for at the end of //text//.|
  
-^  Example  ^  Result  ^ +**Return value type:** Boolean (TRUE/FALSE) 
-endswith( 'Motorola Inc.', 'Inc' |  FALSE | + 
-endswith( 'Ruthless', 'less' )  |  TRUE |+\\  
 +=====Remarks===== 
 +This function is case sensitive. 
 + 
 +This function ignores trailing whitespace and other non-printing characters when matching //end_string// to the end of //text//. 
 + 
 +\\  
 +=====Examples===== 
 + 
 +  endswith( 'Motorola Inc.', 'Inc'//Returns FALSE 
 + 
 +  endswith( 'Ruthless', 'less'//Returns TRUE 
 + 
 +  endswith('Ruthless', 'LESS') //Returns FALSE  (unmatched due to case) 
 + 
 + 
 +\\  
 +===== See also ===== 
 +  * [[syntax:functions:contains]|Contains(text, look_for)]] 
 +  * [[syntax:functions:find]|Find(text, look_for)]] 
 +  * [[syntax:functions:startswith]|StartsWith(text, start_string)]]
  
-=== See also === 
-  * [[syntax:functions:find]] 
-  * [[syntax:functions:contains]] 
-  * [[syntax:functions:startswith]] 
syntax/functions/endswith.txt · Last modified: 2021/08/14 19:02 by craigt

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki