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; ?>
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; ?>
Are these simply shorthand if statements?
And what does || mean?


Thanks
Barry