π¦ 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/valuepairs 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
- The player presses the βNew Gameβ button.
- The flow triggers a reset sequence.
- The Multiple Assignment block is configured with
number = 3to modify 3 variables. - The
variable/valuepairs are connected:
scoreβ0livesβ3levelβ1
- The
outsignal activates the continuation of the flow (eg: display of the starting screen).
βοΈ Technical Details
- Dynamic behavior: The number of
variable/valuepairs automatically adapts to the value ofnumber. Ifnumberis 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
Thank you!
