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 - Русский - 日本語
Scilab Help >> Scilab > quit

quit

Terminates Scilab or decreases the pause level

Syntax

quit

Description

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 abort of the instructions started at this pause level and terminates the current pause level.

Examples

// 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
pause
foo(%t) //returns at the main prompt level

function foo1(x)
mprintf('P1\n')
if x then 
   pause
   mprintf('P2\n')
end
mprintf('P3\n')
endfunction
     
foo1(%t) //enter quit at the following prompt

See Also

  • pause — pause mode, invoke keyboard
  • break — keyword to interrupt loops
  • abort — interrupt evaluation.
  • exit — Ends the current Scilab session
  • resume — return or resume execution and copy some local variables
Scilab Enterprises
Copyright (c) 2011-2015 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Wed Jun 15 08:27:30 CEST 2016