SHIFT()¶
Synopsis¶
Removes and returns the first item off of a variable containing delimited text
Description¶
Example: SHIFT example
This would iterate over each value in array, left to right, and would result in NoOp(var is one), NoOp(var is two), and NoOp(var is three) being executed.exten => s,1,Set(array=one,two,three)
exten => s,n,While($["${SET(var=${SHIFT(array)})}" != ""])
exten => s,n,NoOp(var is ${var})
exten => s,n,EndWhile
Syntax¶
Arguments¶
-
varname
-
delimiter
Generated Version¶
This documentation was generated from Asterisk branch 22 using version GIT