Asterisk func if
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
- Asterisk cmd ExecIf
- Asterisk func iftime: IFTIME function
- Asterisk cmd GotoIfTime: GotoIfTime
- Asterisk functions
- Asterisk variables
Featured -
Search:

Page Changes






