--- title: If-else Statement --- ## Introduction If/Else is a conditional statement where depending on the truthiness of a condition, different actions will be performed. > **Note:** The `{}` brackets are only needed if the condition has more than one action statement; however, it is best practice to include them regardless. ## If Statement ``` **Note:** The `else` statement is optional. ## If/Else Statement ``` **Note:** `elseif` should always be written as one word. ## If/Elseif/Else Statement ``` PHP Alternative syntax for control structures For more information please check out the following link: [PHP: if](http://php.net/manual/en/control-structures.if.php)