Skip to content
Skip to main content

Simple Conditional Statements

Updated Wednesday, 24th June 2015
Learn how to use an if statement in order to carry out different courses of action based on differing conditions.

This page was published over 7 years ago. Please be aware that due to the passage of time, the information provided on this page may be out of date or otherwise inaccurate, and any views or opinions expressed may no longer be relevant. Some technical elements such as audio-visual and interactive media may no longer work. For more detail, see how we deal with older content.

Exception - Not Found Error
Coding error detected, it must be fixed by a programmer: Cannot call moodle_page::add_body_class after output has been started.