Skip to content

DEC()

Synopsis

Decrements the value of a variable, while returning the updated value to the dialplan

Description

Decrements the value of a variable, while returning the updated value to the dialplan

Example: Decrements MyVAR
same => n,NoOp(${DEC(MyVAR)})

Note

DEC(${MyVAR}) is wrong, as DEC expects the variable name, not its value

Syntax

DEC(variable)
Arguments
  • variable - The variable name to be manipulated, without the braces.

Generated Version

This documentation was generated from Asterisk branch 22 using version GIT