• Preetilata Patil
  • NEWBIE
  • 0 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
I have a VF component which has a controller where I’m calculating the no of records and storing the value in an Integer (get set) named resultCount.
I want to display that based on a condition something like     
1. if results are 50, show “Displaying first 50 results”
2. if results are less than 50, show “Displaying N results” (N is the exact number found)

For this I’m using the below statement, but it is not working,
Can someone help please.

<apex:outputLabel value="{!IF(!resultCount < 50,’Displaying {!resultCount} Results’,’Displaying first {!resultCount} Results')}" />

 
  • September 05, 2019
  • Like
  • 0