On Sun, Oct 26, 2008 at 3:32 PM, michael.steven86
<[EMAIL PROTECTED]> wrote:

> I'm experiencing a problem with a multiple if statement. I have tried
> to use braces, but I must be doing something wrong. So, I have
> removed all braces in the pseudo-code below, in the hope that someone
> can help point out where I am going wrong:
>
>
>  if (condition 1)
>     calc1
>  else if (condition 2)
>     calc2
>  else if (condition 3)
>     calc3
>  else if (condition 4)
>     calc4
>  else
>     calc5
>
> I get 2 error messages stating that I have misplaces else statements
> after calc3 and calc4.

You should still post the actual code, not pseudo-code. Depending on
how your code is structured, you might be able to convert this into a
switch statement.

-- Brett
------------------------------------------------------------
"In the rhythm of music a secret is hidden;
    If I were to divulge it, it would overturn the world."
               -- Jelaleddin Rumi

Reply via email to