How to find out whether a substring is part of a string?

If you need to find out whether a substring is contained within a certain string, you can use the function below. The function will return 1 if the substring is a part of the string.

How to_find_out_whether_a_substring_is_part_of_a_string