console.log($parameters.In1);
var json=$parameters.In1;
var data=$parameters.TableData;
console.log(data);
let model=JSON.parse(json);
var s=[];
let datalist=JSON.parse(data);
let list=[];
datalist.forEach(v=>{
list.push(v.Modality);
});
let wherestr='';
model.forEach((v,i,e)=>{
console.log(v.value);
s[i]=v.value;
wherestr+='v.Modality==\''+v.value+'\' ||';
});
let sss='v.BioALab==\'XBL\' || v.BioALab==\'Labcorp\'';
if(wherestr.length>0){
wherestr=wherestr.substr(0,wherestr.length-2);
}
const table=list.filter((v)=>eval(wherestr));
console.log(s);
console.log(table);
console.log(JSON.stringify(table));
$parameters.Out1=JSON.stringify(table);