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 do Brasil - Japanese -
Scilab help >> Scilab > Scilab keywords > return

return

return or resume execution and copy some local variables

Calling Sequence

return
[x1,..,xn]=return(a1,..,an)

Arguments

x

...

Description

In a function return stops the execution of the function, [..]=return(..) stops the execution of the function and put the local variables ai in calling environnement under names xi.

In pause mode, it allows to return to upper level [..]=return(..) returns to upper level and put the local variables ai in calling environnement under names xi.

In an execstr called by a function [..]=return(..) stops the execution of the function and put the local variables ai in calling environnement under names xi.

resume is equivalent to return.

See Also

  • abort — interrupt evaluation.
  • break — keyword to interrupt loops

Comments


Add a comment:
Please login to comment this page.

<< quote Scilab keywords select >>

Consortium Scilab (DIGITEO)
Scilab Enterprises

Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Wed Oct 05 12:09:25 CEST 2011