Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
if else if [Unreal 227h]
#1
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.
Reply
#2
I've done it this way because it is the most compatible formatting. Besides else's are very hackish Tongue
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)