set %map:MAP% at key %key:EXPR% to %val:EXPR% for %scope:EXPR% — Statements

set %map:MAP% at key %key:EXPR% to %val:EXPR% for %scope:EXPR%
Map1.0.0

Description

Sets a key-value pair in a scoped global map for a specific scope reference. Reads the map from storage, inserts the entry, and writes it back.

Examples

set balances at key "money" to 100 for p

All Possible Usages (1)

Every distinct way you can write this pattern, with optional groups and choice groups expanded. Placeholders are shown as <name>.

set <map> at key <key> to <val> for <scope>

Related (Map)