Asterisk Project : Function_SHIFT

Asterisk Project : Function_SHIFT This page last changed on Mar 30, 2011 by wikibot. # SHIFT() ### Synopsis Removes and returns the first item off of a variable containing delimited text ### Description Example: 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 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. ### Syntax
    SHIFT(varname[,delimiter])
##### Arguments `varname` `delimiter` ### See Also ### Import Version This documentation was imported from Asterisk version SVN-branch-1.8-r311874.

Document generated by Confluence on Oct 04, 2011 12:42