User Tools

Site Tools


syntax:functions:startswith

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
Next revisionBoth sides next revision
syntax:functions:startswith [2015/03/20 21:16] elenapsyntax:functions:startswith [2021/08/12 18:19] dmitry
Line 1: Line 1:
 ====== StartsWith(textA, textB) ====== ====== StartsWith(textA, textB) ======
  
-True, if first text string (textA) starts with the other (textB)Case sensitive.+A search function used to check if the first string of text starts with the specific text.  
 + 
 +It returns TRUE if //textA// starts with //textB//, otherwise it returns FALSEThis function is case sensitive.
  
 ^  Example  ^  Result  ^ ^  Example  ^  Result  ^
 | startswith( 'Crimea', 'Crime' )  |  True | | startswith( 'Crimea', 'Crime' )  |  True |
 | startswith( 'IBM', 'i' )  |  False | | startswith( 'IBM', 'i' )  |  False |
 +
 +
 +=== Remarks ===
 +The function ignores trailing spaces in both arguments. See the example below.
 +
 +^  Example  ^  Result  ^
 +| startswith( '        Crimea', Crime' )  |  True |
  
 === See also === === See also ===
syntax/functions/startswith.txt · Last modified: 2021/08/14 19:01 by craigt

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki