function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
AceldamaAceldama 

Error when writing IF formula on VF template

Hello all.  I have formula I am trying to work out.  We want to display a section in a VF template only during certain dates so that we don't need to log in and alter the VF email template over the weekend.

 

I've got it to work with the help of a colleague, but not exactly optimal:

{!IF(TODAY()<DATE(2013,07,06),true,false)}">"My Message"</apex:outputtext>

 

What I'd really like to do is this, but keep getting errors with extra ",":

{!IF((OR(TODAY()=DATE(2013,07,03)),(TODAY()=DATE(2013,07,04)),(TODAY()=DATE(2013,07,05))),true,false)}</apex:outputtext>

 

Any help?

Starz26Starz26
I believe you have an extra (

try

{!IF(OR(TODAY()=DATE(2013,07,03)),(TODAY()=DATE(2013,07,04)),(TODAY()=DATE(2013,07,05))),true,false)}