Support » Everything else WordPress » Why brace { version not mentioned?

  • Why wordpress recommends IF/ELSE alternate method without brackets?

    i.e. here you see:

    <?php if(condition) :  ?>
          <!-- ... -->
    <?php endif; ?>

    However, it doesnt mention another (better with my opinion) method:

    <?php if(condition) {  ?>
          <!-- ... -->
    <?php } ?>

    because clicking on brace easily shows us (within most of text-editors) relative pair of closing(or opening) tag .

    • This topic was modified 11 months, 1 week ago by  Tazo Todua.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Why brace { version not mentioned?’ is closed to new replies.