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
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
-
9:04
Drupal Video Tutorial: Embedding Multi-Axis Reviews
-
34:27
Drupal 6 Module Development: Creating a Related Nodes Block Tutorial 1 of 2
-
2:27
Cool Drupal 7 Modules #1: Module Filter
-
13:17
Introduction to PHP for Drupal Tutorial #6: PHP Arrays
-
16:08
Introduction to PHP for Drupal Tutorial #7: PHP Loops
-
11:54
Introduction to PHP for Drupal Tutorial #8: PHP Functions
-
10:02
Introduction to PHP for Drupal Tutorial #10: PHP Objects
-
10:57
Drupal 7 Module Development Tutorial #11 - Using Template_Preprocess to Change the Flag Link