Comment on page
The Get Variable block allows us to retrieve the value of a previously stored variable within the graph's data context.
In the example below, we use the Get Variable block to retrieve the previously stored value of "priceThreshold" and use it as an input for the Check Price block:
When the above graph is executed, the Get Variable block fetches the value of "priceThreshold," which was previously stored in the data context, and passes it as input to the Check Price block for price comparison. This enables us to use data that has been calculated or determined earlier in the graph, allowing for efficient and structured data flow.
Get variableblocks have one input: a string for the name of the variable we are accessing. They also have one output, which is the value of the variable we have accessed.
If no variable exists with the name that we pass to a
Get variableblock, then it will simply output no data, and any block receiving as input the
Get Variableblock's output will instead receive empty (or null) data.