The startsWith() function checks whether a string starts with a specified substring and returns 1 if true, and 0 if false.
startsWith(str, start_str)
| Argument | Type | Description |
|---|---|---|
str | String | The string to be checked |
start_str | String | The expected starting substring |
Return type: Boolean
UQLreturn startsWith("ultipa.com", "Ultipa")
Result: 0
Find webpages with URLs that begin with "https://".
UQLfind().nodes({startsWith(@webpage.url, "https://")}) as n return n{*}