To search for a substring in your string variables, the syntax for the conditional is:
if regexm(variable,"search-string")For example, if you are looking for "ondas" in the auto database:
sysuse autoNote that the string can take regular expressions. I.e., the following returns results where the make starts with "A" or "H"
l if regexm(make,"ondas")