DEC

DEC decrements by 1 a value such as a number, string or an array of numbers or strings.

Function category: Statistical

Syntax

DEC(arg1)

Arguments

Description

arg1

A number, string or an array of numbers or strings (or any value thing that can be parsed into a number).

Example

let's say we have the following field reference with a numeric value.

findEngineByID.body.price = 4800

If we want to decrement the price value by 1, use the following function.

# Decrement value by 1
DEC(findenginebyid.body.price)
# Returns 4799