Make if statement result clearer

This commit is contained in:
Malcolm Fell 2013-06-28 08:57:52 +12:00
parent c3cc11f2a8
commit c5fca52d14

View File

@ -190,9 +190,9 @@ if (/* test */) {
}
<?php if (/* test */): ?>
<!-- Do something that isn't PHP -->
This is displayed if the test is truthy.
<?php else: ?>
<!-- Do something default -->
This is displayed otherwise.
<?php endif; ?>
```