|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
arkin Smarty n00b
Joined: 05 Dec 2006 Posts: 1
|
Posted: Tue Dec 05, 2006 11:22 pm Post subject: {if} extension/idea |
|
|
Not sure if this has been talked about, but i'd like an extension like this.
It encorporate empty.
{if $var e true}
aka
if (empty($var)) |
|
Back to top |
|
boots Administrator
Joined: 16 Apr 2003 Posts: 5611 Location: Toronto, Canada
|
Posted: Wed Dec 06, 2006 12:13 am Post subject: |
|
|
Why not just use {if empty($var)} ? |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Wed Dec 06, 2006 3:26 pm Post subject: |
|
|
depending on your needs:
Code: | {if empty($var)}
{if !isset($var)}
{if $var eq ""} |
|
|
Back to top |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
Posted: Wed Dec 06, 2006 3:28 pm Post subject: |
|
|
or (also depending on your needs) just
|
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|