How to end a loop?

For questions regarding programming in the EViews programming language.

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

chasequestion
Posts: 3
Joined: Mon Aug 08, 2011 4:12 am

How to end a loop?

Postby chasequestion » Tue Aug 09, 2011 8:01 am

For example in such a loop
for !i=1 to 10 step 1
xxxxxxxx
next

I need to jump out of the loop in the middle (say !i=3 or when some circumstance is met) , how should I do?
For example, we have "continue" and "break" to end the loop in C++; what is the counterpart command in Eviews?
Thanks very much!

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

Re: How to end a loop?

Postby EViews Gareth » Tue Aug 09, 2011 8:07 am

exitloop

stevecsp
Posts: 4
Joined: Sun Sep 18, 2011 8:03 pm

Re: How to end a loop?

Postby stevecsp » Fri Sep 30, 2011 12:14 am

Hi, eviews.

So I know the "exitloop" is similar to "break" a loop
But what about "continue" a loop just as in C++? How can I do that in Eviews(6.0)?
Thank you very much.

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

How to end a loop?

Postby EViews Gareth » Fri Sep 30, 2011 6:38 am

There isn't one :(


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests