Vanguard Software
Forecasting & Planning Solutions
Home Products Solutions Services Customers Partners Company
 
Applying science to business management

contents.gifindex.gifprev1.gifnext1.gif

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

  Demand Planning  |  Financial Forecasting
Forecasting Software  |  Strategic Planning Software  |  Decision Tree Software
Decision Support Software  |  Expert System Software  |  Online Surveys

Contact Us  |  Terms of Use  |  Privacy Policy  |  Site Map
Vanguard Software
© 2011 Vanguard Software Corporation
Print this page   Email this page to a friend