[Scilab-users] Data Extraction Issue in Scilab

Dang, Christophe Christophe.Dang at sidel.com
Tue Apr 9 08:59:20 CEST 2013


Hello, 

De la part de Munian, Devaraj
Envoyé : mardi 9 avril 2013 08:30

> When some conditions is met , I want to stop executing the rest of the 
> code. 
> [...]
> if num_inject==3; 
>     Message={'This script is not suitable for Triple injection'};
>     h = msgbox(Message,'Quit');
>    uiwait(h);
>    break;
> end

This looks like the handling of an erroneous input.

Maybe you should look at error()

http://help.scilab.org/docs/5.4.1/en_US/error.html

with the appropriate errorcatch() option

http://help.scilab.org/docs/5.4.1/en_US/errcatch.html

Hope this helps

Regards

-- 
Christophe Dang Ngoc Chan
Mechanical calculation engineer
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.





More information about the users mailing list