### dollar condition problem

Posted:

**Mon Apr 29, 2019 9:09 pm**Hi,

I have to use the if statement for my model. But I get an error for this equation. Why didn't I get the error? I'd appreciate it if you could help.

Eq.. const26(m,t).. sum((i,k),A(i,m,k,t))($sum(i,d(m,t,i)) gt r(m,t)) =e= sum(i,db(m,t,i)) ;

Error:

**** const26(m,t).. sum((i,k),A(i,m,k,t))($sum(i,d(m,t,i)) gt r(m,t)) =e= sum(i,db(m,t,i)) ;

$37,409

37 '=l=' or '=e=' or '=g=' operator expected

409 Unrecognizable item - skip to find a new statement

looking for a ';' or a key word to get started again

I have to use the if statement for my model. But I get an error for this equation. Why didn't I get the error? I'd appreciate it if you could help.

Eq.. const26(m,t).. sum((i,k),A(i,m,k,t))($sum(i,d(m,t,i)) gt r(m,t)) =e= sum(i,db(m,t,i)) ;

Error:

**** const26(m,t).. sum((i,k),A(i,m,k,t))($sum(i,d(m,t,i)) gt r(m,t)) =e= sum(i,db(m,t,i)) ;

$37,409

37 '=l=' or '=e=' or '=g=' operator expected

409 Unrecognizable item - skip to find a new statement

looking for a ';' or a key word to get started again