Skip to content

@str.includes

Check whether a string contains a substring.

Returns: bool

@str.includes(value item)
Name Type Description
value string Input value
item string Substring to search for
# Check if string contains substring
print @str.includes("hello world" "world")
# Check for missing substring
print @str.includes("hello world" "xyz")