PLEASE add else if in XPHP…
-= G =-
PLEASE add else if in XPHP…
-= G =-
You may already know this, but you can nest conditionals, like…
<xphp content="true">
<if var="foo"/>
<content>
<!-- do something -->
</content>
<else content="true">
<content>
<xphp if="bar"><!-- do something else --></xphp>
</content>
</else>
</xphp>
That second conditional uses the if/then shorthand, but you could nest a full xphp if block in there too.
right - I do know about that and use it a lot, but I’m talking about a whole series of else blocks and the nesting gets complicated and hard to grok if there are too many…
Thanks,
-= G =-
Heard! Thanks you two.