HasTag

See Also

Tags, AnyBranchTags, AllBranchTags

Syntax

Hastag(Tag1), or
Hastag(Branch:Variable, Tag1)

Description

Returns a value of True (1) if the branch is tagged with the single named tag. Otherwise returns False (0).  When used with a single parameter the function refers to the current Branch. When used with two parameters, it can refer to another branch.

Example

HasTag(Thermal,  Transformation\Electricity Generation\Coal:Exogenous Capacity)