Understanding problem with If and else if
Hello
I was trying to use an IF and ELSE IF statement for the below code block but when I try to use the Show region utility I find only one IF statement and no else statement. Can you pls help me here? I need to show different h3 tags base on the groupID value under a single block of code instead of several block.
<?php
if ("".($totalCount->getColumnVal("groupID")) ."" == "1") { // WebAssist Show If
?>
<h3 class="card-title text-left bg-success rounded p-2 text-white"><span class="badge badge-light text-secondary"><?php echo str_replace($name_en,$name_bn, $nameCounter); ?></span> <?php echo($namesbygroup->getColumnVal("nameBD")); ?> </h3>
<?php
} // ("".($totalCount->getColumnVal("groupID")) ."" == "1")
?>
<?php
if ("".($totalCount->getColumnVal("groupID")) ."" == "2") { // WebAssist Show If
?>
<h3 class="card-title text-left bg-danger rounded p-2 text-white"><span class="badge badge-light text-secondary"><?php echo str_replace($name_en,$name_bn, $nameCounter); ?></span> <?php echo($namesbygroup->getColumnVal("nameBD")); ?> </h3>
<?php
} // ("".($totalCount->getColumnVal("groupID")) ."" == "1")
?>