ez.no / exponential / documentation / reference / template operators / strings / begins_with
$input_array|begins_with( sequence )
| Name | Type | Description | Required |
|---|---|---|---|
| sequence | string | String to look for. | yes |
true if there is a match, false otherwise.
The begins_with operator checks if the inputted string begins with a specified element/character/sequence (or not). Returns true or false. This is the same operator as the "begins_with" operator in the arrays category.
{"My cat is green."|begins_with( "My cat" )}
returns true.
{"My cat is green."|begins_with( "My dog" )}
returns false.
Comments