Esa sintaxis no es de php. creo que te equivocaste de lugar, pero creo que tu error es cerrar los ifs.
Código PSEUDO:
Ver originalIf [Bachillerato]="SÍ" Then
If [CarneConducir]="SÍ" Then
->Grupo1
Else
->Grupo2
End if
Else
If [CarneConducir]="SÍ" Then
->Grupo3
Else
->Grupo4
End if
End if