Eliot's Forum
if else if [Unreal 227h] - Printable Version

+- Eliot's Forum (https://eliotvu.com/forum)
+-- Forum: UE Explorer (https://eliotvu.com/forum/forumdisplay.php?fid=1)
+--- Forum: General (https://eliotvu.com/forum/forumdisplay.php?fid=3)
+---- Forum: Issues (https://eliotvu.com/forum/forumdisplay.php?fid=4)
+---- Thread: if else if [Unreal 227h] (/showthread.php?tid=16)



if else if [Unreal 227h] - titegtnodI - 04-09-2012

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.


RE: if else if [Unreal 227h] - eliot - 04-10-2012

I've done it this way because it is the most compatible formatting. Besides else's are very hackish Tongue