Serkan Bey Selamlar,
Başka bi arkadaş sormuş soruyu ben ilave olarak yorum yaptım :)
İf le 2 bölge yapmaya çalıştım ama sıfır çıkıyor veya programı kapatıyor. And boşluklarına dikkat ettim. buraya attım diye boşluk kaybolmuş olabilir.
if(MOV(C,opt3,VAR)>OTT(C,opt3,opt4),
a1:=mov(c,3,s)>mov(c,5,s) AND mov(c,5,s)>mov(c,8,s) AND mov(c,8,s)>mov(c,10,s) AND mov(c,10,s)>mov(c,12,s) AND mov(c,12,s)>mov(c,14,s);a2:=mov(c,30,s)>mov(c,35,s) AND mov(c,35,s)>mov(c,40,s) AND mov(c,40,s)>mov(c,45,s) AND mov(c,45,s)>mov(c,50,s) AND mov(c,50,s)>mov(c,60,s);(a1 and a2 and mov(c,14,s)>mov(c,30,s)) AND ref((a1 and a2 and mov(c,14,s)>mov(c,30,s)),-1)=0,
MOV(C,opt3,VAR)>OTT(C,opt3,opt5) AND a1:=mov(c,3,s)>mov(c,5,s) AND mov(c,5,s)>mov(c,8,s) AND mov(c,8,s)>mov(c,10,s) AND mov(c,10,s)>mov(c,12,s) AND mov(c,12,s)>mov(c,14,s);a2:=mov(c,30,s)>mov(c,35,s) AND mov(c,35,s)>mov(c,40,s) AND mov(c,40,s)>mov(c,45,s) AND mov(c,45,s)>mov(c,50,s) AND mov(c,50,s)>mov(c,60,s);(a1 and a2 and mov(c,14,s)>mov(c,30,s)) AND ref((a1 and a2 and mov(c,14,s)>mov(c,30,s)),-1)=0)