$ObjectIncrease

To increase a key value, if the key doesn't exist, it will create one and set to that value

Usage

$ObjectIncrease[Key;Amount]

Notes on Amount:

  • It can be a number like 5, or negative -5 to reduce instead of increase\
  • It can be expression like x*2 where x is the current value

Example 1:

Member08/02/2024
!!exec $objectIncrease[Mido;10]
$objectIncrease[Rake;5]
$objectGet

Custom Command Bot 08/02/2024
{"Mido":10,"Rake":5}

Example 2:

Member08/02/2024
!!exec $objectIncrease[Mido;10]
$objectIncrease[Mido;x*2]
$objectGet

Custom Command Bot 08/02/2024
{"Mido":20}