Hi!
I have some values coming into a function that looks like this:
for(int i=1;i<a.length;i++)
{
if(a[i]!=ResultList.CC && a[i-1]==ResultList.CC)
result.addValue(a[i]); else if(a[i]!=ResultList.CC && a[i-1]!=ResultList.CC)
result.addValue(a[i]);
else if(a[i]==ResultList.CC && a[i-1]!=ResultList.CC)
result.addValue(a[i]); }
It is supposed to remove suppress and pass the other values forward. However it does not work when the first value in the beginning of my attached picture is true. How can I adjust the function to make this work?!
If I change the int i=1 to =2 it will not work if the value in the beginning is false. So it becomes the opposite. Any ideas?