That was pretty close, but you should have one < and > per line. I'm not sure if totalcomments is a field, but if it were it would probably be the total number of comments in your directory, not just the link in question.
Try this
<IF {LINKNUMCOMMENTS} is 0> There are no comments at the moment. Be the first to post one! </IF>
or even
<IF {LINKNUMCOMMENTS} is 0> There are no comments at the moment. Be the first to post one! <OTHERWISE> Join the discussion, post a comment! </IF>
It would help to know why you're trying those, where you came up with them from, if you've read the manual entry on link template variables, and if you've read mrowton's post.
0/5
1
2
3
4
5
This thread is closed, so you cannot post a reply.
Comments on Conditional on Comment page
Forum Regular
Usergroup: Customer
Joined: Jan 21, 2005
Total Topics: 32
Total Comments: 102
Hi,
How do i make a conditional such as if there is no comment posted, there will be a message displayed like
<IF {TOTALCOMMENTS} < 1>
There are no comments at the moment. Be the first to post one!
</IF>
Anyone knows the conditional for this?
Forum Regular
Usergroup: Customer
Joined: Feb 19, 2004
Location: Michigan
Total Topics: 57
Total Comments: 185
That was pretty close, but you should have one < and > per line.
I'm not sure if totalcomments is a field, but if it were it would probably be the total number of comments in your directory, not just the link in question.
Try this
<IF {LINKNUMCOMMENTS} is 0>
There are no comments at the moment. Be the first to post one!
</IF>
or even
<IF {LINKNUMCOMMENTS} is 0>
There are no comments at the moment. Be the first to post one!
<OTHERWISE>
Join the discussion, post a comment!
</IF>
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Please read scripts.webmastersite.net/w...onditionals_Syntax-69.html for syntax, and check what's already in the templates for template variables to use (along with the ones listed in the manual).
Forum Regular
Usergroup: Customer
Joined: Jan 21, 2005
Total Topics: 32
Total Comments: 102
Have tried {TOTAlNUMCOMMENTS} and {TOTAlCOMMENT} OR {TOTALCOMMENTS} but still not working, any help?
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
It would help to know why you're trying those, where you came up with them from, if you've read the manual entry on link template variables, and if you've read mrowton's post.