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 empty value

 
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
aidendoyle1981
Smarty Rookie


Joined: 11 Jan 2016
Posts: 9

PostPosted: Mon Jan 11, 2016 11:52 pm    Post subject: If empty value Reply with quote

Hi I am using a paid template that is using smarty.

I have this line of code
{$price_tag_value}

The question is if the value it retrieves from the db is empty how do I display the words "No Price"


Thanks
Back to top
View user's profile Send private message
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7368
Location: Lincoln Nebraska, USA

PostPosted: Tue Jan 12, 2016 3:28 am    Post subject: Reply with quote

http://www.smarty.net/docs/en/language.modifier.default.tpl
Back to top
View user's profile Send private message Visit poster's website
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1785

PostPosted: Tue Jan 12, 2016 6:08 am    Post subject: Reply with quote

Priceless!…
Seriously, though, you should not use such wording, even in internal applications. Use something along the lines of "missing" (if price MUST be present, and this is an internal application) or "by request" (if it is a public document).
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 -> 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