Is using If, ElseIf, ElseIf better than using If, If, If?

Posted by Jordan S on Stack Overflow See other posts from Stack Overflow or by Jordan S
Published on 2010-05-21T11:21:36Z Indexed on 2010/05/21 11:30 UTC
Read the original article Hit count: 249

Filed under:

Is there really any difference between using

If(this)
{
}
Else If(that)
{
}
Else
{
}

or using,

If(this)
{
}
If(that)
{
}
Else
{
}

? Does one execute any faster? Does the compiler or architecture make any difference?

© Stack Overflow or respective owner

Related posts about if-statement