trouble with  if condition
i call this function like this: calculate(2)

function calculate(flag)
{
   if (flag==1)
   {
   }
   else if (flag==2)
   {  
   }
   else (flag==3)
   {  
   }
}

In the debugger i see, that it jumps also to else (flag==3) (apart from  else if (flag==2)).
Could someone explain it to me?

thanks
H.Bada


trouble with  if condition
===

i call this function like this: calculate(2)

function calculate(flag)
{
   if (flag==1)
   {
   }
   else if (flag==2)
   {  
   }
   else (flag==3)
   {  
   }
}

In the debugger i see, that it jumps also to else (flag==3) (apart from  else if (flag==2)).
Could someone explain it to me?

thanks
H.Bada

