IF(Ausdruck
?trueVal
:falseVal
)
?
, sonst der Wert nach
:
zurückgegeben.; wenn ${Var}=123 ist, dann 5 zurückgeben, sonst 9: exten => 123,1,Set(foo=${IF($[ ${Var} = 123]?5:9)})
————————| 1.2 |————————| 1.4 |————————| 1.6 |————————
-= Info about function 'IF' =-
[Syntax]
IF(<expr>?[<true>][:<false>])
[Synopsis]
Conditional: Returns the data following '?' if true else the data following ':'
[Description]
Not available
--- in Asterisk 1.4
+++ in Asterisk 1.6
@@ -4,7 +4,7 @@
IF(<expr>?[<true>][:<false>])
[Synopsis]
- Conditional: Returns the data following '?' if true else the data following ':'
+ Conditional: Returns the data following '?' if true, else the data following ':'
[Description]
Not available