Quantcast
Channel: SCN : Unanswered Discussions - Process Integration (PI) & SOA Middleware
Viewing all articles
Browse latest Browse all 6719

Help with function to remove suppress

$
0
0

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?


Viewing all articles
Browse latest Browse all 6719

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>