The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 LabTalk Forum
 Skipping iterations on a loop
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

LabTalk user

USA
35 Posts

Posted - 01/17/2011 :  4:36:49 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): 8.1 SR#
Operating System: XP

I have a loop which does many calculations based upon which iteration the loop is on. I am trying to write some code which would allow the loop to run but skip an iteration based upon user input.

Right now the iteration number is related to a variable with 0 being don't do the iteration and 1 being run the loop for that iteration. How would I set up the code to skip an iteration without completely breaking out of the loop.

Thanks

Penn

China
644 Posts

Posted - 01/17/2011 :  8:39:54 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

Please use the Continue command.

Penn
Go to Top of Page

LabTalk user

USA
35 Posts

Posted - 01/19/2011 :  3:07:33 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks that's exactly what I was looking for.
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000