It is sometimes necessary to compare a string at the same time with several different strings. This is the same as asking if the string is contained in a given string set. To this end the string class provides the In method.
The wildcard character * (star) can be used in the string set. In the following example the In method returns the true value if the keyword string either starts by “comp”, or is “software”, or is “hardware”.
category = 1