Browse the docs

startsWith

Tells whether the text begins with the given text.

Details #

startsWith(text, prefix) takes exactly two arguments and returns true or false. It is case-sensitive. Non-text values are turned into text first.

Parameters #

Takes 2 arguments. {{ startsWith(text, b) }}

Examples #

startsWith("https://example.com", "https://")
→ true
startsWith(name, "Dr. ")
→ true
Sample variableValue
nameDr. Who