Modifier: starts_with


Returns true if the value starts with a given string. This comparison is case-insensitive.

reply: Actually, I disagree because this is the internet.
{{ if reply | starts_with:actually }}
{{ if reply | starts_with:respectfully }}
true
false

Additional Reading

Learn how to use and chain modifiers in the Antlers template guide.

Last modified on December 8, 2016