Skipping a loop in for loop command

For questions regarding programming in the EViews programming language.

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

Posts: 5
Joined: Sun Jul 15, 2012 5:08 am

Skipping a loop in for loop command

Postby hfahmy » Sun Jul 15, 2012 5:19 am


Is it possible to skip a loop in the for loop command in eviews 7?

Specifically, here is what I want to do:

For !i=1 to !n
if condition=true then
[next !i] <-- some command that would go here which would basically skip rest of the lines in the for loop and go to next !i
[more lines]
[more lines]

Would appreciate any help!

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

Skipping a loop in for loop command

Postby EViews Gareth » Sun Jul 15, 2012 8:08 am

Unfortunately not - you'll have I use the if condition to only do stuff for that iteration of the loop if some condition is met.
Follow us on Twitter @IHSEViews

Return to “Programming”

Who is online

Users browsing this forum: No registered users and 24 guests