bbedit search result and go if it is true

Hello i´m new at AS and need please a little Help

I have an text document where i have made some changes in it with bbedit

now i would work on when it find a text Sting like this “|” nowhere in the document
Bud i don´t no how i should do this ?
Model: G4
AppleScript: 1.10.7
Browser: Firefox 1.0.6
Operating System: Mac OS X (10.4)