| Applying science to business management |
  
Procedure
Format: { x, y, ... }
Arguments: [any] x, y Any valid
expression(s)
Returns: [any] The value of the last argument evaluated
Description: The Procedure operator is used to
create a list of steps to execute. The expressions x, y,
... are evaluated in the order listed, and the result of the last
expression is returned. Nodes created within the braces are
visible only within the braces and will not interfere with other
nodes having the same name.
( ) and { } are similar in that they both evaluate a
list of expressions. However, nodes created while evaluating an
expression in ( ) are global while those created within
{ } cease to exist outside the braces.
In most cases braces { } should be used instead of
parentheses ( ) when creating procedure that uses local
variables. Braces ensure that all nodes created within the braces
are local and will not overwrite or in any way interfere with
other nodes having the same name.
Examples: {x:=123,y:=x*2,y} =
246 (nodes x and y are local and do not persist
outside the braces)
See Also: Parentheses,
List Literal, Object Literal
|