I am trying to get the last iteration record in apex:repeat tag and outputs the last iteration record using visualforce and not using apex. I tried using the first attribute but no luck. Please help me to get last recent record. Thanks in Advance!
<apex:repeat value="{!relatedTo.Histories}" var="hist" first="">
<apex:outputLabel value="Student Name: "/>
<apex:outputText value="{!hist.NewValue}"/>
</apex:repeat>