### problem in if statement

Posted:

**Fri Jun 30, 2017 1:11 pm**hello, I am new to GAMS and I have started coding in GAMS with some small problems. Currently, in one problem I am using 'if' statement as follow:

if (a(t) <=b(t),

p(i,t)=a(t);

else

p(i,t)=b(t);

);

in this code error_119(related to primary number) is occurred.

Thanks in advance for help in future.

if (a(t) <=b(t),

p(i,t)=a(t);

else

p(i,t)=b(t);

);

in this code error_119(related to primary number) is occurred.

Thanks in advance for help in future.