BranchLevel

Syntax

BranchLevel
BranchLevel(BranchName)

Description

Get the level of the branch in the tree, where the top level (e.g., Key Assumptions, Demand Sites, Supply and Resources) equals one. BranchName is optional so that, when used without any parameter, the function returns the branch level of the current branch.

Example

BranchLevel

Evaluated for \Demand Sites\South City in Weaping River Basin = 2

BranchLevel(\Demand Sites\Agriculture West\Rose County Corn\Sprinkler) = 4