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

contents.gifindex.gifprev1.gifnext1.gif

branch

Format: branch( choice, branch1, branch2, ... )

Arguments: (text,logic) choice Usually a call to choose or askyesno

[any] branchN Any nodes

Returns: [any] Value of the selected branch

Description: This function is used to create an interactive decision tree node.

Branch first generates a list containing the comment text attached to each child of the active node and then assigns this list to the branchoptions primitive. Next, branch executes choice. Usually, choice contains a call to an input functions such as choose which uses branchoptions to construct its query. The result of this input function is then compared to the comment text list to find out which child node contains the selected text. Finally, the node whose comment matches the selected text is evaluated.

For example, in the following tree branch first sets branchoptions equal to the value ["Option 1","Option 2"].

dph00438.gif

Next, the call to choose will display a query similar to the following:

  dph00439.gif

Finally, if the user chooses Option 1 then Branch 1 is executed. Similarly, if the user chooses Option 2 then Branch 2 is executed.

  If choice is a Boolean value from askyesno, branch1 is evaluated if true and branch2 if false.

dph00440.gif

  dph00441.gif

See Also: branchoptions, choose, askyesno

  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