int flag = 0; if(a) { flag = flag+1; } if(b) { flag = flag+1; } if(c) { flag = flag+1; } if(d) { flag = flag+1; } if(flag >=2) { //Execute Statement }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)