page_title | description |
---|---|
endswith - Functions - Configuration Language |
The endswith function takes a given string and a given suffix value,
and returns true if the first given string contains the given value at its end. |
endswith
takes a given string and a given suffix value,
and returns true if the first given string contains the given value at its end.
endswith(string, suffix)
> endswith("hello world", "world")
true
> endswith("hello world", "hello")
false
startswith
takes a given string and a given prefix value, and returns true if the first given string contains the given value at its beginning