If statements vs case

Hershel Fisch hershf at rgllc.us
Tue Feb 27 20:45:40 EST 2007


On 2/27/07 4:53 PM, "Mark Schonewille" <m.schonewille at economy-x-talk.com>
wrote:

Thanks, I saw it after I asked sorry about that.

But by the way besides speed I think there is an additional difference which
I think is the nested if's, vs. case I don¹t think this is possible
Thanks, Hershel
> Hershel,
> 
> There is an example of this in the docs:
> 
>  switch (the number of this card)
>    case 1
>    case (the number of cards)
>      -- both the above case conditions execute the following
>      -- statements:
>      beep
>      break
>    default
>      go next card
>  end switch
> 
> "Default" is equal to "else" without another "if".
> 
> Best,
> 
> Mark
> 
> --
> 
> Economy-x-Talk
> Consultancy and Software Engineering
> http://economy-x-talk.com
> http://www.salery.biz
> 
> 
>> Ok we got it, Now the question arises how is it in the "case"
>> statements to
>> write an "else" without a following "if"
>> 
>> Switch tS
>>  case "a"
>>  do a
>>  break
>> '''Else'''
>> Do b
>> End switch
>> 
>> Thanks, to all Hershel
>> 
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list