while(elements to check) { if (elem should be printed) { print elem . "," } }