Asterisk func iftime
Synopsis
Temporal Conditional: Returns the data following '?' if true else the data following ':'Description
IFTIME(<timespec>?[<true>][:<false>])Notes
- *CLI> show function IFTIME
- timespec is described here: Asterisk cmd GotoIfTime
Return value
Returns the resulting string.Example
exten => s,1,Set(foo=${IFTIME(*|mon|8-15|nov?goodtime:badtime)})See also
- Asterisk func if: IF function
- Asterisk cmd GotoIfTime: GotoIfTime
- Asterisk cmd GotoIf: GotoIf
- Asterisk functions
- Asterisk variables

Comments