Manual:DIL Manual/string in string

From DikuMUD Wiki
Jump to navigation Jump to search


string 'in' string
   Argument 1: A string to find.
   Argument 2: A string to search.
   Return: TRUE, if first string is found in second string.
Example:

   dilbegin foo();
   code
   {
     if ("guard" in activator.title)
       exec("say hello guard",self);
     pause;
   }
   dilend
---~---~---~---~---~---~---~---~---