Redix LogoDocumentation
API ReferenceJSON

JSONNumMultBy

Multiply a numeric value in a JSON document

Syntax

Redix.JSONNumMultBy(key, path, multiplier, callback)

Parameters

Prop

Type

Returns

  • string: The new value as a string

Example

-- Double the value
Redix.JSONNumMultBy('character:123', '$.stats.damage', 2, function(err, newValue)
    print('New damage:', newValue)
end)