Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

{if isset($some_smarty_var)} ... {/if} ?

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
appel
Smarty Rookie


Joined: 27 May 2003
Posts: 29

PostPosted: Wed Aug 13, 2003 1:57 pm    Post subject: {if isset($some_smarty_var)} ... {/if} ? Reply with quote

Is there a way to do this?

{if isset($some_smarty_var)} ... {/if}
Back to top
View user's profile Send private message
messju
Administrator


Joined: 16 Apr 2003
Posts: 3336
Location: Oldenburg, Germany

PostPosted: Wed Aug 13, 2003 1:58 pm    Post subject: Reply with quote

yes there is a way: simply enter what you posted in your editor and save it as a template Smile
Back to top
View user's profile Send private message Send e-mail Visit poster's website
appel
Smarty Rookie


Joined: 27 May 2003
Posts: 29

PostPosted: Wed Aug 13, 2003 2:09 pm    Post subject: Reply with quote

OMG. I'm a total noob.
Back to top
View user's profile Send private message
jaxyeh
Smarty Rookie


Joined: 07 Aug 2003
Posts: 6

PostPosted: Wed Aug 13, 2003 4:16 pm    Post subject: Reply with quote

or you could also say

{if $whatever} blah blah {/if}

if variable doesn't exit or empty, then skip....
_________________
Jax0rade
Php Quencher!
zerostudios.net
_________________
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP