Re: Any way to evaluate equality expressions with multiple operands?
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