There are no comments. There are missing {}s for the ifs, elseifs.
Even if you had used =='s, where does 'num' ever get set to something besides 0?
Was num supposed to be a flag, set to 1 & 2 when the digitalWrites occurred so each LED know to turn on or off?
I think you'd want 2 flags then, one for each LED.
either that or combine this into just 1 if/else pair: turn LED1 on & LED2 off with num ==1, and LED1 off and LED2 on with num ==2.
if (num ==1){
LED1 on, LED2 off
num = 2}
else {
LED1 off, LED2 on
num = 1}
delay
repeat