Okay I am not the best person at math, I never got past algerbra, so I am requesting what is most likely a simple question.

I have an array with elements that contain 0 or -1, and I want to see if all elements are = -1, and I thought that the best way to do this would be a bitwise operation but not sure which one would be correct

Code:

$array = 0,0,0,-1,0,-1; example of what the array would contain.
;Option 1
For $ = 0 to 5
$2 = $2 | $array[$]
Next

;Option 2
For $ = 0 to 5
$2 = $2 ^ $array[$]
Next

;Option 3

For $ = 0 to 5
$2 = $2 ~ $array[$]
Next



I just am not sure which operator I would use.

Thanks
_________________________
Today is the tomorrow you worried about yesterday.