How can I do a break command in eviews

For questions regarding programming in the EViews programming language.

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

Akavall
Posts: 14
Joined: Tue Mar 09, 2010 10:01 am

How can I do a break command in eviews

Postby Akavall » Thu Apr 01, 2010 9:16 am

Hello,

I am trying to write a code, such that the for loop stops if x(!i) > 1, but I am not sure what syntax I should use.

Code: Select all

for !i = 1 to 100 if x(!i) < 0 then y(!i) = 0 else if x(!i) > 1 then y(!i) = 1 break endif endif next
In above code I am trying to put a break command where "break"(which is of course not the syntax e-views accepts) is written.

Thank You in advance.

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

Re: How can I do a break command in eviews

Postby EViews Gareth » Thu Apr 01, 2010 10:19 am

exitloop

Akavall
Posts: 14
Joined: Tue Mar 09, 2010 10:01 am

Re: How can I do a break command in eviews

Postby Akavall » Thu Apr 01, 2010 12:32 pm

Exactly what I needed. Thank You very much!


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests