sorry to make things complicated.
i really dont want binary numbers.
its not like i am searching through an array of bits. 00001010101 or whatever.
i am reading from a spread sheet.
PressDir=[-1,1,-1,1]
PressDir = Pressure direction. -1 will indicate it to go down in pressure. and +1 will be up in pressure.
I guess what I didnt do was initializing the PressDir as an array of interger rather than just an integer.
Best regards,
Krispiekream