Re: Logical expressions ("and" and "or")
Re: Logical expressions ("and" and "or")
- Subject: Re: Logical expressions ("and" and "or")
- From: Paul Berkowitz <email@hidden>
- Date: Sun, 23 Feb 2003 17:18:01 -0800
On 2/23/03 1:56 PM, "Jeffrey Mattox" <email@hidden> wrote:
>
A significant feature of the C language is that logical expressions
>
connected by && ("and") and || ("or") are evaluated left to right,
>
and evaluation stops as soon as the truth or falsehood of the result
>
is known [K&R, section 2.6].
>
>
Is this also true in AppleScript? If so, conditionals can be
>
optimized, a little.
Yes, it works the same way.
--
Paul Berkowitz
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.