Articles on: Blocks Creator
This article is also available in:

🟦 Multi Assign

⬜ Multi Assign


The Multiple Assignment block allows several variables to be modified simultaneously in a single block, thus avoiding the repeated use of individual assignment blocks. Ideal for resetting counters or updating multiple user data in a single operation.


πŸ“₯ Entries


  • in (Signal): Triggers the assignment or modification of variables.
  • Number: Defines the number of variables to modify. The block dynamically adjusts the number of variable/value pairs based on this value.
  • variable (Variable): Target variable to modify (repeated as many times as specified by number).
  • value (Any): New value to assign to the target variable (repeated as many times as specified by number).


πŸ“€ Outings


  • out (Signal): Activates once all variables have been successfully modified.


πŸ’‘ Example of use


Scenario: Resetting a player's statistics at the start of the game


  1. The player presses the β€œNew Game” button.
  2. The flow triggers a reset sequence.
  3. The Multiple Assignment block is configured with number = 3 to modify 3 variables.
  4. The variable/value pairs are connected:
  • score β†’ 0
  • lives β†’ 3
  • level β†’ 1
  1. The out signal activates the continuation of the flow (eg: display of the starting screen).


βš™οΈ Technical Details

  • Dynamic behavior: The number of variable/value pairs automatically adapts to the value of number. If number is changed, additional entries are added or removed.
  • Validation: All variables must be defined before execution to avoid errors. The block does not process uninitialized variables.

Updated on: 04/03/2026

Was this article helpful?

Share your feedback

Cancel

Thank you!