You could do:
<?php
$wa_startindex = 0;
while(!$Meta_RS->atEnd()) {
$wa_startindex = $Meta_RS->Index;
?>
<li><?php echo($wa_startindex != 0?", ":""); ?><a href="#"><?php echo($Meta_RS->getColumnVal("name")); ?></a></li>
<?php
$LocaleMeta_RS->moveNext();
}
$Meta_RS->moveFirst(); //return RS to first record
unset($wa_startindex);
unset($wa_repeatcount);
?>