At 9:03 PM -0800 1/8/01, Kerry Thompson wrote:
>> on visitedTimes nr, fieldNm
>> if nr<1 then
>> put "You have not visited here yet" into field fieldNm
>> else if nr =1 then
>> put "You have visited here once" into field fieldNm
>> else if nr>=1 then
>> put "You have visited here"&&a&&"times" into field fieldNm
>> end if
>> end
>
>That's good--I noticed one minor point, though.
>
>The last else should read
>
>else if nr > 1
>
>because the previous if statement checked for =, and >= is a bit redundant.
>
Well, if you really want to elimate redundancy, you don't even need
the last check. Since the first "if" tests for less than one, the
second "if" checks for equal to one, then for the remaining case all
you need is an "else" without a check at all because the value must
be greater than one.
Irv
--
Lingo / Director / Shockwave development for all occasions.
(Over two millions lines of Lingo code served!)
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]