Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.4.1 - Português

Change language to:
English - Français - 日本語 - Русский

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

Ajuda Scilab >> Scilab > quit

quit

Decresce o nível de pausa ou termina o Scilab

Seqüência de Chamamento

quit

Descrição

O comando quit tem dois significados diferentes dependendo do contexto de chamamento:

Se não houver pause ativo,

Então o comando quit faz o Scilab terminar, mesmo que o comando seja chamado dentro de uma função.

Se houver pause ativo,

Então o comando quit aborta instruções iniciadas neste nível de pausa e termina o nível de pausa corrente.

Exemplos

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

//terminando instrução iniciada num contexto de pausa
function foo(x),if x then quit,end,endfunction
pause
foo(%t) //retorna ao nível de prompt principal

function foo1(x),
  mprintf('P1\n')
  if x then pause, mprintf('P2\n'),end,
  mprintf('P3\n')
endfunction
     
foo1(%t) //enter com quit no prompt seguinte

Ver Também

  • pause — modo de pausa, invoca teclado
  • break — palavra-chave para interromper um laço ("loop") (significa "interromper (neste ponto)")
  • abort — Interrupção de avaliação
  • exit — termina a sessão Scilab corrente
Report an issue
<< perl Scilab scilab >>

Copyright (c) 2022-2023 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Tue Apr 02 17:37:03 CEST 2013