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

the value null is not valid for operator >=

error is in <apex:outputPanel rendered="{!IF(finance__c.Income__c >=0,true,false)}"/> in <outputpanel> component .

I am trying to first check null values for the field to void the error,but i am stuck

1. first not sure whether we can check two if condition in output panel
2. <apex:outputText value=" to " rendered="{!IF(ISBLANK(finance__c.Income__c) , false , true)}" adding this line before  <apex:outputPanel rendered="{!IF(finance__c.Income__c >=0,true,false)}"/> but no luck

please help me with the solution

SandhyaSandhya (Salesforce Developers) 

You may try  NOT(ISNULL(finance__c.Income__c)) use ISNULL instead of ISBLANK

Please mark it as solved if my reply was helpful, it will make it available
for others as a proper solution.

Best Regards,
Hi Divya,

If you are trying to get child relation field then use finance__r.Income__c in place of finance__c.Income__c.

 <apex:outputPanel rendered="{!IF(finance__r.Income__c >=0,true,false)}"/>
you mean like this <apex:outputPanel rendered="{!IF(NOT(ISNULL(finance__c.Income__c))) >=0,true,false)}">

not working:)
Hi thanks for the reply .@deve (mailto:.@deve) i have t check whether field is null and f condition also
<apex:outputPanel rendered="{!IF(finance__c.Income__cc >=0,true,false)}" >=0,true,false)}"> this is my existig staement what can i add to check the value is not null
Please try this:
<apex:outputPanel rendered="{!IF(AND(finance__c.Income__cc != null, finance__c.Income__cc>=0)),true,false)}">
<apex:pageBlockSectionItem> may have no more than 2 child components
What the error you are getting now