forked from solstice/solstice
631 B
631 B
string_Contains
Check if a string has another string in it.
Arguments
- haystack (string): the string to check against.
- needle (string): the string to look for.
Returns
found (bool): returns true if haystack has needle inside it.
Example
Ground
call !string_Contains "The task was completed successfully." "success" &found
println $found # true
call !string_Contains "The task failed." "success" &found
println $found # false
Solstice
puts string_Contains("The task was completed successfully.", "success") // true
puts string_Contains("The task failed.", "success") // false