List dataPassed = new ArrayList();
// Whenever a conditionResult is not blank, the corresponding
// dataToPassThrough entry is copied to the output
for(int i = 0; i < dataToPassThrough.size(); i++){
  String conditionValue = (String) conditionResults.get(i);
  if(conditionValue != null && conditionValue.length() != 0 && !conditionValue.equals("0")){
        dataPassed.add(dataToPassThrough.get(i));
  }
}
