_ShiftIsEmpty

Tests if shift is empty

Lists.au3
_ShiftIsEmpty( $aShift )

parameters

$aShift Shift register array as handle

return value

boolean value True = Empty, False = Shift register contains elements

@error

1 Not a shift register

related

_ShiftCreate, _ShiftIsShift, _ShiftToArray, _ArrayToShift

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)