In this lesson our instructor talks about conditional control structures. First, he discusses statement groups, conditional control structures, if statement, and else statement. Then he talks about isset()construct and some coding conventions. He ends the lesson with a helpful homework challenge.
Statements can be grouped together in statement groups so that the entire
group of statements can be executed as if it were one statement.
Conditional control structures are used to conditionally execute statement
groups when a required ‘test condition’ is met.
An if statement evaluates whether a test condition is
TRUE , and if so, it executes a corresponding statement group.
An else statement is a conditional control structure associated
with an if statement. When an if statement's test condition is FALSE, an associated
else statement's statement group will get executed instead.
The isset() construct tests if a variable has been previously declared,
and if so, that its value is not NULL . It accepts a variable as its
argument and returns a boolean value.
Lecture Slides are screen-captured images of important points in the lecture. Students can download and print out these lecture slide images to do practice problems as well as take notes while watching the lecture.