Tests if shift is empty
| Lists.au3 _ShiftIsEmpty( $aShift ) |
| $aShift | Shift register array as handle |
| boolean value | True = Empty, False = Shift register contains elements |
| 1 | Not a shift register |
_ShiftCreate, _ShiftIsShift, _ShiftToArray, _ArrayToShift
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)