mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-04-27 07:33:57 +00:00
Make if statement result clearer
This commit is contained in:
parent
c3cc11f2a8
commit
c5fca52d14
@ -190,9 +190,9 @@ if (/* test */) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
<?php if (/* test */): ?>
|
<?php if (/* test */): ?>
|
||||||
<!-- Do something that isn't PHP -->
|
This is displayed if the test is truthy.
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<!-- Do something default -->
|
This is displayed otherwise.
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user