πͺ Set in Object
πͺ Set in Object
The Set in Object block lets you add or update a property in an Object variable. An "Object" here is simply a variable that groups several related pieces of information under one name (a bit like a record card: one slot for nickname, one for score, etc.) instead of creating a separate variable for each one.
Essential for progressively building or enriching that record (e.g. a player record) throughout the scenario, before sending it to an API or saving it.
π₯ Inputs
- variable (Object variable): The Object variable to modify. If it is empty, a new object is created in it.
- path (Text): The name of the property to set (e.g.
score,nickname). This field also accepts a dotted path to reach a nested property (e.g.player.stats.score) or a list item by its index (e.g.items.0). - value (Dynamic variable): The value to assign to this property (Text, Number, Boolean, List or nested Object).
π€ Outputs
- out (Stream): Continues the flow once the property has been set.
π‘ Example
Scenario: Building a player record throughout the game
- At the start of the game, an empty
playerObject variable is created. - After character creation, a Set in Object block adds the
nicknameproperty with the value entered by the player. - After each round, another Set in Object block updates the
scoreproperty. - The
playervariable, now complete, can then be sent via an HTTP Request block or saved β just reconnect it wherever it's needed, it already holds everything.
βοΈ Technical Details
- Internal ID:
setInObject - Behavior: If the property already exists, its value is overwritten. If not, it is added to the object.
- No "object" output: This block does not return the updated object on a dedicated output point β it directly updates the Object variable connected as input. To read the result, reconnect that same variable to another block further down the graph.
Documented version: v1
Updated on: 06/09/2026
Thank you!
