Re: BBEdit - test result of Find
Re: BBEdit - test result of Find
- Subject: Re: BBEdit - test result of Find
- From: David Simerly <email@hidden>
- Date: Tue, 25 Sep 2001 16:04:11 -0700
- Url: http://www.digital-native.com
on 9/25/01 1:59 PM, email@hidden at email@hidden wrote:
>
if false then
>
set color_flag to "bw"
>
else
>
set color_flag to "color"
>
end if
You're testing a constant value (false). The result of your find is getting
stored in "the result," so that's what you need to test, as in:
if not result then...
You can also take the long traditional way as in:
if result = false then...
HTH.
DS
______________________________________
Digital Native
Your guide through the virtual jungle.
______________________________________
"Twenty years from now you will be more disappointed by the things you
didn't do than by the ones you did. So throw off the bowlines. Sail away
from the safe harbor. Catch the trade winds in your sails. Explore. Dream.
Discover." -- Mark Twain