• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: BBEdit - test result of Find
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: RE: Barriers to AppleScript adoption
  • Next by Date: Re: How to tell if a file is busy?
  • Previous by thread: Re: BBEdit - test result of Find
  • Next by thread: ANNOUNCE: Script Debugger 3.0 supports Mac OS X
  • Index(es):
    • Date
    • Thread