If statement

6 years 5 months ago #221168 by rstaniszewski
Hi

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.

Thanks

Richard
Moderators: beatnantkrileon
Time to create page: 0.352 seconds
Facebook Twitter Google LinkedIn