The following warnings occurred:
Warning [2] Undefined array key "previewpost" - Line: 164 - File: inc/plugins/htmlposts.php PHP 8.3.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/htmlposts.php 164 errorHandler->error_callback
/inc/class_plugins.php 142 htmlposts_parse
/inc/class_parser.php 153 pluginSystem->run_hooks
/inc/functions_post.php 829 postParser->parse_message
/showthread.php 1121 build_postbit
Warning [2] Undefined array key "previewpost" - Line: 164 - File: inc/plugins/htmlposts.php PHP 8.3.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/htmlposts.php 164 errorHandler->error_callback
/inc/class_plugins.php 142 htmlposts_parse
/inc/class_parser.php 153 pluginSystem->run_hooks
/inc/functions_post.php 829 postParser->parse_message
/showthread.php 1121 build_postbit




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: 2 Guest(s)