πͺ Get from Object
πͺ Get from Object
The Get from Object block lets you read a specific value stored inside an Object variable (structured key/value data, like a JSON object).
It is the counterpart of the "Get from list" block, but for data identified by name rather than by position. It is useful for reading a specific piece of information from a player record, an API response, or any other structured data imported into the project.
π₯ Inputs
- object (Object): The Object variable to search in.
- path (Text): The path to the value you're looking for inside the object (e.g.
score,name, oraddress.cityfor a nested value). - default (Text, Number, Boolean, List or Object): The value returned if the path isn't found (or if the value found is empty/
null).
π€ Outputs
- value (Dynamic variable): The value found at the requested path. Its type adjusts automatically based on what's found (text, number, list, nested object...).
- found (Boolean):
trueif a value was found at the requested path (anullvalue counts as "not found").
π‘ Example
Scenario: Displaying a player's score received from an API
- An HTTP request returns a player object containing
{"name": "Alice", "score": 1200}. - You want to display only the score in a dialogue bubble.
- Add a Get from Object block, and connect the received object variable to the object input.
- Type
scorein the path input. - The value output returns
1200, ready to be displayed or used further down the flow.
βοΈ Technical Details
- Internal ID:
getFromObject - Nested paths: To access a nested property, use dot notation (e.g.
address.city) or brackets for a list item (e.g.items[0].id). - Value not found: If the path doesn't lead to any value (or leads to an empty one), the value output returns the default value and the found output is
falseβ instead of silently breaking the flow.
Documented version: v1
Updated on: 06/09/2026
Thank you!
