PHP for Drupal Tutorial #4: Conditional IF Statements

In the fourth introduction to PHP tutorial of this series, I walk you through PHP If statements which allow us to add some dynamic complexity to our scripts. In doing so, we use an if statement to selectively print a message to a user but these can obviously get very complex. In short, an if statement is provided something to evaluate, which if true, executes some block of code. We conclude by looking at a statement which is a little more complex and reacts to input provided by a user via an HTML form.