Welcome Guest, Not a member yet? Register   Sign In
multiple nested IFs possible in view?
#1

[eluser]cleansugar[/eluser]
Code:
<?php if (a == 0) :?>
     <?php if (a == 0) :?>
     <?php else:?>
          <?php echo(a); ?>
     <?php endif;?>
<?php else:?>
      <?php echo(b); ?>
<?php endif;?>

I want to make IF in IF in view.
But when I run the view, both echo a and echo b executed.
Is it impossible multiple ifs?


Messages In This Thread
multiple nested IFs possible in view? - by El Forum - 07-25-2009, 05:44 AM
multiple nested IFs possible in view? - by El Forum - 07-25-2009, 06:26 AM



Theme © iAndrew 2016 - Forum software by © MyBB