Skip to content

string.startswith

starkos edited this page Apr 10, 2021 · 3 revisions

⚠️ We have a new website! Visit now for the most update to date documentation.
       This wiki is no longer being maintained.


Returns true if the given string starts with the provided sequence.

string.startswith("haystack", "needle")

Parameters

haystack is the string to check. needle is the starting sequence to check against.

Return Value

True if haystack starts with needle.

Availability

Premake 4.0 or later.

See Also

Clone this wiki locally