Asterisk
[Asterisk] IF 함수
Kimos
2009. 6. 15. 09:40
IF문
=> IF문 조건으로 분기
=> 제일 많이 쓰이고 있는 것은 GotoIf문
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 GotoIf => IF문으로 분기하여 Goto문 실행
Asterisk cmd ExecIf => IF문으로 분기하여 실행
Asterisk func iftime: IFTIME function => 시간으로 IF문 분기
Asterisk cmd GotoIfTime: GotoIfTime => 시간으로 IF문 분기하여 Goto문 실행