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.0.1. This page might be outdated.
See the recommended documentation of this function

Scilab help >> Scilab > Control flow > return

return

return or resume execution and copy some local variables

Calling Sequence

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

Arguments

x1,..,xn

variables in calling environment

a1,..,an

local variables

Description

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

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

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

The statement resume is equivalent to return.

See Also

  • abort — interrupt evaluation.
  • break — keyword to interrupt loops
  • execstr — execute Scilab code in strings
  • resume — return or resume execution and copy some local variables
Scilab Enterprises
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Mon Oct 01 17:34:33 CEST 2012