What's the point, you can accomplish the same with if/elsif/else.  Maybe I'm
not understanding this correctly, but

if (cond)
{}
elsif (cond)
{}
else
{}

Ilya

> -----Original Message-----
> From: raptor [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, July 28, 2001 9:35 AM
> To: [EMAIL PROTECTED]
> Subject: if then else otherwise ...
>
>
> hi,
>
> we have <=> and 'cmp' operators but we don't have the conditional
> constroct
> to use better their result :
> May be forthcomming switch will solve this in some way, but isn't
> it better
> to have shortcut like this :
>
> if (cond)
> { }
> else {}
> otherwise {}
>
>
> i.e.
> if cond == 1  then  'then-block'
> if cond == 0  then  'else-block'
> if cond == -1  then  'otherwise-block'
>
> If the "if" construct doesn't have "otherwise" it behave like the current
> "if-else"..
>
>
> =====
> iVAN
> [EMAIL PROTECTED]
> =====

Reply via email to