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
 Stop Script
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

luismramirezr

Brazil
7 Posts

Posted - 04/16/2016 :  1:25:18 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): 2015
Operating System:

Hi,

I have an ogs script with an IF statement.

I would like to stop the entire script if the IF statement is activated.
I tried run.section to a blank section at the end of the script, however, it runs the blank section and then returns after the IF statement.

Tried break 1, however, the script continued to run.

How do I do this?

Thank you.

jasonzhao

China
262 Posts

Posted - 04/18/2016 :  06:12:48 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hello,

You can put the following scripts in else {}, then if meet the condition, else part will not run.

if(condition)
{...
}
else
{
...
}


Best regards!
Jason
OriginLab Technical Service

Edited by - jasonzhao on 04/19/2016 03:12:34 AM
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