_ShiftPop

Pops (removes) a value from the given shift register at last position

Lists.au3
_ShiftPop( $aShift )

parameters

$aShift Shift register array as handle

return value

value Value popped from shift register

@error

1 Not a shift register
2 Shift register is empty, no values

related

_ShiftPush, _ShiftPeek, _ShiftGet, _ShiftValueInShift

example

Local $aMyShift = _ShiftCreate()
_ShiftPush( $aMyShift, "qwerty" ) ; into first position
_ShiftPush( $aMyShift, "abcde" ) ; into first position
....
If Not _ShiftIsEmpty( $aMyShift ) Then $Value = _ShiftPop( $aMyShift ) ; $Value = qwerty (last value)