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: Alex Hall <email@hidden>
- Date: Thu, 05 Sep 2013 21:34:49 -0400
Thanks, I had not considered that way of looking at it. That function should be easier to write than what I was thinking of.
On Sep 5, 2013, at 9:15 PM, Jon Pugh <email@hidden> wrote:
> 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
>
Have a great day,
Alex (msg sent from Mac Mini)
email@hidden
_______________________________________________
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