Hi all,
Just wondering what these snippets actually mean, am I right in saying:
PHP Code:<?php if ($smart): ?>
<p>If $smart has a value, show this paragraph else don't show anything</p>
<?php endif; ?>Are these simply shorthand if statements?PHP Code:<?php if ($smart || $desktop): ?>
<p>If $smart and $desktop both have values, show this paragraph else don't show anything</p>
<?php endif; ?>
And what does || mean?
Thanks
Barry



Reply With Quote





Bookmarks