login | register
Tue 02 of Dec, 2008 [13:11 UTC]

voip-info.org

Discuss [0] History

Asterisk func if

Created by: murf,Last modification on Wed 23 of May, 2007 [12:19 UTC] by hermuli

Synopsis

 Conditional: Returns the data following '?' if true else the data following ':'

Description

 IF(<expr>?[<true>][:<false>])

Notes

  • *CLI> show function IF
  • Resides in func_logic.so module

Return value

Returns the resulting string.

Example

 exten => s,1,Set(foo=${IF($[ ${x} = 7]?tval:fval)})

See also





Comments