Skip to main content

lookupVariable

Tries to find the variable for the given key.

Signature

lookupVariable(ref: Node | NodeBlock | Condition | ConditionBlock, key: string): IVariable

Parameters

NameTypeOptionalDescription
refNode | NodeBlock | Condition | ConditionBlockNoReference to a node, condition or block instance.
keystringNoSpecifies the key of the variable.

Return value

Returns an IVariable object or undefined if the variable was not found.