(03-05-2015, 06:56 AM)alexandervj Wrote: I figured it out, I had the greater than less than signs backwards haha thanks for your help!
Those are always the best! I once had an application with some code that said, if the value is positive then subtract it and if it is negative then add it - took me hours to work out why the negative values kept doubling up whilst the positives reset themselves to zero!
I believe NASA once lost a rocket due to the same error in a guidance control system