Re: compactness of expression question
Re: compactness of expression question
- Subject: Re: compactness of expression question
- From: Michelle Steiner <email@hidden>
- Date: Thu, 17 Jan 2002 16:00:47 -0700
On 1/17/02 1:51 PM, billp <email@hidden> wrote:
>
Is there a more compact way I can express the following?:
This is slightly more compact:
if ItemKind = "Characters" then
global CharacterCount
set CharacterCount to ItemCount
else if ItemKind = "Words" then
global WordCount
set WordCount to ItemCount
else if ItemKind = "Lines" then
global LineCount
set LineCount to ItemCount as integer
else if ItemKind = "Paragraphs" then
global ParagraphCount
set ParagraphCount to ItemCount as integer
else if ItemKind = "Tables" then
global TableCount
set TableCount to ItemCount
end if
--Michelle
----------------------------------------------------------------------
| Michelle Steiner | We're not human beings having a spiritual |
| | experience. We're spiritual beings |
| email@hidden | having a human experience. |
----------------------------------------------------------------------