Terminates Scilab or decreases the pause level (original) (raw)

Scilab 5.3.3

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

Scilab help >> Scilab > quit

quit

Terminates Scilab or decreases the pause level

Calling Sequence

Description

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

If there is no pause active,

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

If there is a pause active,

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

Examples

function foo(x),if x then quit,end,endfunction foo(%t)

function foo(x),if x then quit,end,endfunction pause foo(%t)

function foo1(x), mprintf('P1\n') if x then pause, mprintf('P2\n'),end, mprintf('P3\n') endfunction

foo1(%t)

See Also