PHP : cookie parse error
I have a problem with a text on a cookie when the cookie exist, I get an error : "Parse error: syntax error, unexpected T_VARIABLE, expecting" on the 
`if $_COOKIE['style'] == 'styles2'`

    <?php 
        if (!isset($_COOKIE['style']))
            echo "<option value='styles' selected>Style 1</option>
                  <option value='styles2'>Style 2</option>";
        else{
            if $_COOKIE['style'] == 'styles2'
                echo "<option value='styles'>Style 1</option>
                      <option value='styles2' selected>Style 2</option>";
            else
                echo "<option value='styles' selected>Style 1</option>
                      <option value='styles2'>Style 2</option>";
        }
    ?>
PHP : cookie parse error
===

I have a problem with a text on a cookie when the cookie exist, I get an error : "Parse error: syntax error, unexpected T_VARIABLE, expecting" on the 
`if $_COOKIE['style'] == 'styles2'`

    <?php 
        if (!isset($_COOKIE['style']))
            echo "<option value='styles' selected>Style 1</option>
                  <option value='styles2'>Style 2</option>";
        else{
            if $_COOKIE['style'] == 'styles2'
                echo "<option value='styles'>Style 1</option>
                      <option value='styles2' selected>Style 2</option>";
            else
                echo "<option value='styles' selected>Style 1</option>
                      <option value='styles2'>Style 2</option>";
        }
    ?>