Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 744 Bytes

endswith.mdx

File metadata and controls

30 lines (22 loc) · 744 Bytes
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 Function

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)

Examples

> endswith("hello world", "world")
true

> endswith("hello world", "hello")
false

Related Functions

  • 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