Skip to main content

startsWith

Tests if a string starts with the given prefix. Returns a Boolean true or false.

The test is case-sensitive.

Parameters

  • STRING (string)

    The string to test.

  • PREFIX (string)

    The prefix to test for.

Examples

ATL in Script

Result

[[startsWith('The written word endures, the spoken word disappears', 'T')]]

true

[[startsWith('The written word endures, the spoken word disappears', 't')]]

false

[[startsWith('The written word endures, the spoken word disappears', 'The')]]

true