+ Start a Discussion
Sean NolansSean Nolans 

Content cannot be displayed: The value 'null' is not valid for operator '>'

Content cannot be displayed: The value 'null' is not valid for operator '>'

What is strange is that that sys admin does not get the message and the page renders well but not for users they get the above error


example  of synthax
<apex:outputlabel value= "{!IF(order__c.hss_qty_price__c > 0, "Includes HSS ", "No hss" )}" /> <apex:outputText value = "{!IF(order__c.hss_qty_price__c > 0, order__c.hss_qty_price__c, " " )}" />


Any suggestsion would be great

thanks 

 
SandhyaSandhya (Salesforce Developers) 
Hi,

Try below code.

"{!IF(AND(NOT(ISBLANK(order__c.hss_qty_price__c)),order__c.hss_qty_price__c > 0),order__c.hss_qty_price__c, " " )}"

Please mark it as solved if my reply was helpful. It will make it available for other as the proper solution.
 
Best Regards
Sandhya


 
Amit Chaudhary 8Amit Chaudhary 8
Please update your code like below
<apex:outputlabel value= "{!IF(order__c.hss_qty_price__c > 0, 'Includes HSS ', 'No hss' ) }" /> 

<apex:outputText value = "{!IF(order__c.hss_qty_price__c > 0, order__c.hss_qty_price__c, ' ' )}" />

Please use signle '