Problems, need help? Have a tip or advice? Post it here.
4 posts Page 1 of 1
I'm sure this is dead simple but I'm not getting it. I want to use the cms:if tag to display something if a date field has been set and is later than today's date. I've got the second bit OK, it's the first bit I have a problem with. I know I can use cms:if to determine if a value has been set (i.e., it doesn't evaluate to null or blank or ''). But how do I use to determine if it has NOT been set? How do I negate this? That is, how do I do what in Javascript would be something like 'if(!condition)'?

Code: Select all
<cms:if "<cms:not var />" >.. </cms:if>

Interesting - thanks! Knew it would be simple. I missed that, as it's not mentioned here: http://docs.couchcms.com/tags-reference.html

Re:

Johnny2R wrote: Interesting - thanks! Knew it would be simple. I missed that, as it's not mentioned here: http://docs.couchcms.com/tags-reference.html

True. It's mentioned here though viewtopic.php?f=5&t=7377
4 posts Page 1 of 1

Who is online

In total there are 8 users online :: 0 registered, 0 hidden and 8 guests
(based on users active over the past 5 minutes)

Users browsing this forum: No registered users and 8 guests