If loop with non-symmetry condition

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

ylongchamp
Posts: 14
Joined: Fri Apr 08, 2011 5:03 am

If loop with non-symmetry condition

Postby ylongchamp » Mon Nov 12, 2012 3:29 am

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

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: If loop with non-symmetry condition

Postby EViews Gareth » Mon Nov 12, 2012 8:47 am

Try using the @neqna function rather than <>

ylongchamp
Posts: 14
Joined: Fri Apr 08, 2011 5:03 am

Re: If loop with non-symmetry condition

Postby ylongchamp » Tue Nov 20, 2012 3:34 am

Thank you!


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests