PDA

View Full Version : Using If Condition to act on the Latest post


greentips
03-01-2010, 06:13 PM
Hello,

I am trying to use <if condition="$post[.....]"> statement to condition an action to the newest(or post with the latest time stamp)on a page. Does anyone know the syntax?

I am using the statement $post['islastshown'] - but that is based on the last one to display, not necessarily the latest post in that page.

If not, what is an alternative way of doing it?

Thanks

Marco van Herwaarden
03-02-2010, 08:17 AM
You will need to check the postid against the 'lastpostid' of the thread.