![]() |
Template if conditions
I'm a bit stuck on a conditional statement - basically, I've got an array of UNIX timestamps that I want to compare with the current UNIX timestamp - generated from time():
The two values I want to compare are: Code:
{vb:raw current_timestamp} Code:
<vb:if condition="{vb:number current_timestamp} < {vb:number times.this_time}"> Quote:
|
The variable syntax in an if statement in vb4 is the same as for vb3. So something like:
HTML Code:
<vb:if condition="$current_timestamp < $times['this_time']"> |
Ah ok, thanks - will try that this evening :)
This is my first attempt at creating extra pages/apps for vB - the forum on my site has always been standalone from the rest of the site, which is WordPress-based. Not for long, though... |
All times are GMT. The time now is 01:09 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|