lookupVariable
Tries to find the variable for the given key.
Signature
lookupVariable(ref: Node | NodeBlock | Condition | ConditionBlock, key: string): IVariable
Parameters
Name | Type | Optional | Description |
---|---|---|---|
ref | Node | NodeBlock | Condition | ConditionBlock | No | Reference to a node, condition or block instance. |
key | string | No | Specifies the key of the variable. |
Return value
Returns an IVariable
object or undefined
if the variable was not found.