I have an array I am pulling information from, i'd like to know how to add items to another array while in the for each loop, example

Code:

For Each $item in $array
do something that produces an error code
If @Error <> 0
Add item to bad items array
Else
Add item to good items array
EndIf
Next




Does that make sense?
_________________________
~Mwah