Eliot's Forum

Full Version: if else if [Unreal 227h]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Code:
if (bah == hab)
{
    DoStuff;
} else if (bah > hab)
{
    DoOtherStuff;
}

Decompiles to:

Code:
if (bah == hab)
{
    DoStuff;
} else
{
    if (bah > hab)
    {
        DoOtherStuff;
    }
}

It produces the same function (and maybe compiles down to the same thing) but it's really annoying when you have a lot of if elses in a row.
I've done it this way because it is the most compatible formatting. Besides else's are very hackish Tongue