Is there any method with which I can find out if any value in an array is negative?
ie
array1 = {1,2,3,4,5,6,7,8}
returns false
array2 = {1,2,3,4,5,-6,7,8}
returns true
Similarly, is there any way I can tell if they're all negative?
ie
array1 = {1,2,3,4,5,6,7,8}
returns false
array2 = {1,2,3,4,5,-6,7,8}
returns false
array3 = {-1,-2,-3,-4,-5,-6,-7,-8}
returns true
Many thanks