& locate()2 If nothing matches, the value #-1 is returned. If more than one thing of the preferred type matches, but nothing matches exactly, the value #-2 is returned, except if the X qualifier was specified in which case one is chosen at random. If more than one thing exactly matches, one is chosen at random. If you specify more than one type preference (E, P, R, or T), then the last one entered is the one that is obeyed. The default is for no type to be preferred. Example: > i test1(#378) test(#376) You have 42463 clams. > look Nullspace(#250R) test1(#382) > say locate(me,test,i) > say locate(me,tes,in) You say "#376" You say "#-2" > say locate(me,test,n) > say locate(here,tes,*) You say "#382" You say "#382" > say locate(me,test1,in) > say locate(me,out,e) You say "#378" You say "#252" > say locate(me,test1,in) > say locate(me,here,*) You say "#382" You say "#250" See Also: num(), PARENT OBJECTS