Page 1 of 1

If loop with non-symmetry condition

Posted: Mon Nov 12, 2012 3:29 am
by ylongchamp
Dear Eviews,

I am programming a loop that looks as follows:

Code: Select all

FOR %x ... FOR %y ... FOR %z ... IF (%y+%z <> %z+%y) THEN genr {%x}{%y}{%z} = ... ENDIF NEXT NEXT NEXT
Notice that x, y and z and similar.

As stated, the if condition does not work, while no error is reported. How can I write the condition so that I obtain the right outcome?

Thank you in advance.
Yves

Re: If loop with non-symmetry condition

Posted: Mon Nov 12, 2012 8:47 am
by EViews Gareth
Try using the @neqna function rather than <>

Re: If loop with non-symmetry condition

Posted: Tue Nov 20, 2012 3:34 am
by ylongchamp
Thank you!