<?php $customergroup = 1;?>
<?php $something = foo1;?>
<?php $somethingelse = foo2;?>
<?php
if ($customergroup == "1" || $customergroup == "2") {?>
//This is shown if equals 1
//so i wish to use
<?php echo $something ?>
//inside this section instead of echo '';
as there would be html code as well and using that in echo ''; can get difficult
<?php } else {?>
//This is shown if equals 2
//so i wish to use
<?php echo $somethingelse ?>
<?php } ?>
but i wish to continue more sections