Câu lệnh điều kiện nào sau đây sai?

If a>0 then d:=d+2;If a<0 then write('a');If a>10 then a:=1 else a:=2;if a<10 then a=1 else a=2;