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

Condition Checking in Smarty tag

 
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 -> Feature Requests
View previous topic :: View next topic  
Author Message
yckadam
Smarty n00b


Joined: 23 Oct 2008
Posts: 1

PostPosted: Thu Oct 23, 2008 8:31 am    Post subject: Condition Checking in Smarty tag Reply with quote

Hello Friends, i have registered one object by using
$smarty->register_object("Obj", $object);

in .tpl file i want to check condition like

{if Obj->username neq ""}....{else}....{/if}

at a time of running file it gives error.

can anybody help me to solve this.

[/code]
Back to top
View user's profile Send private message Send e-mail
Celeb
Administrator


Joined: 17 Apr 2007
Posts: 1025
Location: Vienna

PostPosted: Thu Oct 23, 2008 8:51 am    Post subject: Reply with quote

Try
Code:
{if $Obj->username neq ""}....{else}....{/if}

_________________
Darn computers always do what I tell them to instead of what I want them to do.
Back to top
View user's profile Send private message
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 -> Feature Requests 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