Introduction to PHP for Drupal Tutorial #5: Nesting If Statements and Switch Statements

3,283 views · Published 15 August 2013 · 13:12 · Indexed 25 September 2026

Channel: Web Development Tutorials · 2013 · Education

Watch on YouTube

To purchase my video tutorial series, visit www.torontowebsitedeveloper.com/store. Each purchase helps to keep these video tutorials free and frequent.

In this PHP video tutorial, we continue where we left off in #4 and look at nesting IF statements. I show you how we can check for one condition and if it is true, then check for more conditions. From there, we change things up and look at Switch statements. These essentially provide the same functionality as If / Else If statements but can look cleaner and easier to read. Finally, we conclude the tutorial by looking at short form IF statements. This should only really be used for very simple IF evaluations.

More from this channel