CASE WHEN {altname} is not null THEN '' || {altname}  || '' ELSE {entityid} END