1. RE: Case?

There is no switch/case statement in EU. if/elsif/else takes care of it. 
It's just a little more difficult to type and read.

Chris

 Sam wrote:
> Does Euphoria have anything like a `Case' statement??
> 
>   if X = 1 then do this
>   if X = 2 then do that
>   if X = 3 then do something else
>      .
>      .
>      .
> 
> Any way to combine all those IFs into one statement??
> 
>    Thanks, 
> 
>    Sam 
> 
>

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu