else if
Hi Ray
Am trying to convert
<?php
if ($WADAfaq_order->getColumnVal("FaqSection") == "1") {
echo "Policy";
} elseif ($WADAfaq_order->getColumnVal("FaqSection") == "2") {
echo "Policy Holder";
} elseif ($WADAfaq_order->getColumnVal("FaqSection") == "3") {
echo "Claims";
} else {
echo "Managing the Scheme";
}
?>
to
<?php echo (($WADAfaq_order->getColumnVal("FaqSection") == "1")?"Policy":($WADAfaq_order->getColumnVal("FaqSection") == "2")?"Policy Holder":($WADAfaq_order->getColumnVal("FaqSection") == "3")?"Claims":"Managing the Scheme") ?>
but the latter just defaults to showing 'Claims'