Re: booleans...
Re: booleans...
- Subject: Re: booleans...
- From: Stan Cleveland <email@hidden>
- Date: Mon, 19 Mar 2018 21:31:09 -0700
On Mar 19, 2018, at 09:21 PM, Jean-Christophe Helary wrote:
>
> Is there a trick to have an error be coerced into a FALSE boolean ?
>
> I don't mind using try/on error but code would be so much cleaner with any
> expression result could be coerced into a boolean... Any idea ?
Hi Jean-Christophe,
How about something like this?
try
"foo" as integer
set succeeded to true
on error
set succeeded to false
end try
Stan C.
_______________________________________________
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
References: | |
| >booleans... (From: Jean-Christophe Helary <email@hidden>) |