Forum Moderators: coopster
<?php echo ($item["status"] == 'sold' ? 'Sold' : '' ); ?> if "archives"
--do A
else
if "sold"
-- do B
else
-- do C
It is at this point that I would go to a "switch" construction, unless the actions for "sold" and "active" have a lot in common with each other and you don't want to duplicate code.