LOG IN SIGN UP
Documentation

prefixof()

True if the string haystack begins with the string needle. An empty string is not considered a prefix.

Returns false otherwise.

Format

BOOL
prefixof(STRING haystack, STRING needle)

Examples

1
set req.http.X-ps = std.prefixof("greenhouse", "green");