Ternary Operator
| From: | Robert Jackson | Date: | Thu, 15 Nov 2001 17:17:57 +0000 |
| Subject: | Ternary Operator | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-1917@lists.php.net to get a copy of this message | ||
Hello,
I've looked in the manual but can't find a ternary operator like php's
( test ? true : false ).
Obviously it could be writen as
{if test}
true
{else}
false
{/if}
but I was wondering about this more compact form.
Rob
Dr. Robert Jackson
rob@robertjackson.ca
robert.jackson@utoronto.ca
www.robertjackson.ca