• 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: Any way to evaluate equality expressions with multiple operands?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Any way to evaluate equality expressions with multiple operands?


  • Subject: Re: Any way to evaluate equality expressions with multiple operands?
  • From: Jon Pugh <email@hidden>
  • Date: Thu, 05 Sep 2013 18:15:59 -0700

On Sep 5, 2013, at 5:38 PM, Alex Hall wrote:
> I know that in standard Applescript, the following will throw an error:
> 1<2<3>0
> no matter how you group things with parentheses. Is there a trick to get expressions like the one above to evaluate, or will I have to write a parser to do each comparison? I don't need anything other than equality symbols (no parentheses, math operators, and so on), I just want to evaluate an expression with numbers and multiple equality symbols. Thanks.

This is:

1 < 2 and 2 < 3 and 3 > 0

expand and evaluate accordingly.

Jon


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden


  • Follow-Ups:
    • Re: Any way to evaluate equality expressions with multiple operands?
      • From: Alex Hall <email@hidden>
References: 
 >Any way to evaluate equality expressions with multiple operands? (From: Alex Hall <email@hidden>)

  • Prev by Date: Re: Any way to evaluate equality expressions with multiple operands?
  • Next by Date: Re: Any way to evaluate equality expressions with multiple operands?
  • Previous by thread: Re: Any way to evaluate equality expressions with multiple operands?
  • Next by thread: Re: Any way to evaluate equality expressions with multiple operands?
  • Index(es):
    • Date
    • Thread