|
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 |
aidendoyle1981 Smarty Rookie
Joined: 11 Jan 2016 Posts: 9
|
Posted: Mon Jan 11, 2016 11:52 pm Post subject: If empty value |
|
|
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 |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Tue Jan 12, 2016 6:08 am Post subject: |
|
|
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 |
|
|
|
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
|