Gossamer Forum
Quote Reply
Else ?
Hi,

I would like to use a tag such as <%else%> in my _php templates, does it exist with Links SQL ?

Because if I do a :

<?if ($something) {?>
Some html code
<?}?>
<?else {?>

Some other html code.

<?}?>

It doesn't work unfortunately, and there's nothing in the documentation and in readme.php that explain this.

Any idea ?

Thank you !

Regards,

Gautier.
Quote Reply
Re: [Gautier] Else ? In reply to
It's just standard PHP syntax. It would be something like:
Code:
<?if ($foo = 1) {?>
foo is 1
<?} else {?>
foo isn't 1
<?}?>

Adrian