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
NoodleNoodle 

Visualforce Email template filter

I have a custom object similar to tasks called "Actions". I would like to send an email to users once a week to list all their Actions "Tasks", that are late (so with status = Late).

Info about VF email template

....
recipientType = "User"
relatedToType="User"
....
....
       <apex:datatable cellpadding="5" var="cx" value="{!relatedTo.Action__r}">
            <apex:column value="{!cx.Name}" headerValue="Action Name"/>
            <apex:column value="{!cx.Overall_Status__c} = Late" headerValue="Status"/>
        </apex:datatable
....
...

In the snippet of the code above, I've put in bold the condition I want to use. Is there any way of doing this?
NoodleNoodle
I tried on the datatable rendered = "{! If(relatedToAction__r.Overall_Status__c == 'Late',true, false)}"

But I get  Error: Unknown property 'VisualforceArrayList.Overall_Status__c'