0

I need to check two things and based on outcome display some text. The two things are that the lastModified date of an opportunity is before one date and after another

I try:

<apex:outputPanel rendered="{!IF((relatedTo.opportunity__r.LastModifiedDate <= NOW() - 30) && (relatedTo.opportunity___r.LastModifiedDate >= NOW() - 60, true, false))}">Stalled</apex:outputpanel>

I get:

Error: Syntax error. Missing ')'

But can't see where one is missing?

Any tips

2

Try this one...

<apex:outputPanel rendered="{!IF((relatedTo.opportunity__r.LastModifiedDate <= NOW() - 30) && (relatedTo.opportunity___r.LastModifiedDate >= NOW() - 60), true, false)}">Stalled</apex:outputpanel>

It's not that one was missing per-se, its that it was in the wrong place (at the end).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.