Returns true
if the value ends with a given string. This comparison is case-insensitive.
punchline: That's what she said!
{{ if (punchline | ends_with('she said!')) }}
{{ if (punchline | ends_with('your mom!')) }}
true
false
ends_with
ModifierReturns true
if the value ends with a given string. This comparison is case-insensitive.
punchline: That's what she said!
{{ if (punchline | ends_with('she said!')) }}
{{ if (punchline | ends_with('your mom!')) }}
true
false
Submit improvements, related content, or suggestions through Github.
Betterify this page →