Found?

found?

Reports true if the last search instruction was successful.

Example:

The following procedure will replace all occurrences of a word by another word in the current text box. Make sure you place the cursor at the top of the text box before running the procedure:

to replaceall :this :bythat

search :this

if not found? [stop]

insert :bythat

replaceall :this :bythat

end