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
Priya 777Priya 777 

Hi Can any one Please help me to write the logic for this i'm new to salesforce

If Actual is Less than Target for Auction Vehicle Sold ,we have to  show 0$  in   Payout $ Potential** 

If Actual Is Greater than or equal to Target for Auction Vehicle Sold ,I have to show the Amount  for Payout $ Potential.**

(We have one more logic on it Auction Vehicle sold Maximum is $5,000)

The following is the logic ,

<apex:param value="{! IF(IF(NULLVALUE(PDPWrapList.Percent_of_Target__c,0) >= 100,(NULLVALUE(PDPWrapList.Eligible_RMS_Sold__c * auctionVehiclesIncentive,0)),0) > 5000,5000, IF(NULLVALUE(PDPWrapList.Percent_of_Target__c,0) >= 100,(NULLVALUE(PDPWrapList.Eligible_RMS_Sold__c * auctionVehiclesIncentive,0)),0) )}"/> 

Below hilighted Part is i'm working on 

User-added image