Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: Français - Português - 日本語

Please note that the recommended version of Scilab is 6.1.1. This page might be outdated.
See the recommended documentation of this function

Scilab manual >> Scilab > quit


Terminates Scilab or decreases the pause level

Calling Sequence



The quit command has two different meanings depending on the calling context:

If there is no pause active,

then the quit command makes Scilab terminate, even if the command is called inside a function.

If there is a pause active,

then the quit command makes aborts the instructions started at this pause level ando terminates the current pause level.


// quit Scilab
function foo(x),if x then quit,end,endfunction
foo(%t) //quits scilab

//terminate instruction started in a pause context
function foo(x),if x then quit,end,endfunction
foo(%t) //returns at the main prompt level

function foo1(x),
  if x then pause, mprintf('P2\n'),end,
foo1(%t) //enter quit at the following prompt
Scilab Enterprises
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Wed Jan 26 16:23:36 CET 2011