Help for this page
SELECT CASE WHEN record.is_public = 'Yes' THEN 'public' ... record WHERE record.id = $rec_id; # or other criteria