07-13-2011 10:25 AM
Hi everyone,
I have been trying to figure this problem out for the last few hours so it would be great if someone could help me. Basically, I am running a loop and I want to create an array that contains the iteration number when a certain event occurs. I used the case statement but that requires me to have an output for both the True and False cases. Is there a way to make only an if statement?
If I put the build array inside the case structure, that doesn't help because I still need an output for both the True and False cases.
Thanks so much!
Johnny
Solved! Go to Solution.
07-13-2011 10:32 AM
Try a shift register initialized with an empty array. In the true case use build array to insert the element, in the false case just wire the array through.
07-13-2011 10:34 AM
Something like this
07-13-2011 10:54 AM
Ah! You guys are magnificent. Thanks so much for the help and fast responses!
-Johnny