If statement

10 years 1 month ago #221168 by rstaniszewski
If statement was created by rstaniszewski

I'm using an "if" statement to control the viewing of documents.

I have a field cb_subsdiffdays which is a query - SELECT DATEDIFF(now(),'[cb_subdate]')

If I run a exact match the if statement works ie

[cb:if cb_subsdiffdays="3"] Your 15 day period is active[/cb:if]

if I run a comparison it always fails ie

[cb:if cb_subsdiffdays<="15"] Your 15 day period is active[/cb:if]

Am I missing something?

nb cb_subsdiffdays is equal to 3 today.



Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.209 seconds

Facebook Twitter LinkedIn