06-27-2012 02:39 PM
Try something like this.
Testing for exact equality on doubles can fail since each value may be represented slightly different but be very, very, very close to each other.
Also, I am not sure if the above logic is exactly what you are looking for but the concepts I illustrated apply your questions.
06-28-2012 08:14 AM
Hi Mark,
Thanks a lot for the illustration. I was wondering what you did for the false case.
06-28-2012 08:54 AM
For the false case I would want to skip over it and not change the output array. Like break and jump to the next index.
But if I just leave the false case empty and the tunnel unwired, I would get the broken run arrow unless I choose to use default if unwired.
Just wondering how I could wire up the false case to skip to the next index in the for loop.
06-28-2012 10:10 AM
@Ghoster wrote:
For the false case I would want to skip over it and not change the output array. Like break and jump to the next index.
But if I just leave the false case empty and the tunnel unwired, I would get the broken run arrow unless I choose to use default if unwired.
Just wondering how I could wire up the false case to skip to the next index in the for loop.
If you are using Mark's setup, just pass the array straight through (input tunnel to output tunnel). That way, you keep the value the same and keep it in the shift register.