Chapter 8 Controlling Flow with Conditions and Loops
What You’ll Learn in This Chapter:
The if
Statement
Using Shorthand Conditional Expressions
Testing Multiple Conditions with if
and else
Using Multiple Conditions with switch
Using for
Loops
Get Sams Teach Yourself Ajax, JavaScript and PHP All in One now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.